Tree :



 Faceted index, by topics :
Menu

 
Category
V5 (46)
V5.01 (21)
V5.10 (15)
V5.20 (32)
V5.30 (16)
V5.31 (1)
V5.32 (4)
V5.33 (16)
V5.34 (7)
V5.35 (2)
V5.40 (27)
V5.41 (7)
V5.42 (4)
V5.43 (6)
V5.50 (1)
V5.60 (1)
V5.61 (2)
V5.70 (9)
V5.71 (4)
 
 How to insert these widgets?

      5. Reference
          5.5. Ideas
              5.5.3. Idea contents editing
                  5.5.3.9. Editing idea text : WYSIWYG editor
                      5.5.3.9.2. Insert internal links
 5.5.3.9.2.4. Insert an image (alternate method)  

Choose the image to insert in the file selector, at current cursor location.

The image is added to current idea (shown in the idea properties with a default title beginning by "--"), while WIT creates the HTML insertion code (see note 2).

Removing an inserted image is easy : just select it and press the delete key. It will also be removed from idea properties as WIT rebuilds the page.

The ".TextImage" CSS style controls how this image is displayed in the text (advanced use).

At build time, WIT will copy the image file to its target location while generating the page.

Note : you can also drag and drop (single or multiple) images files directly in the WYSIWYG editor from the file explorer. If the dropped image is not correctly placed, select it and drag it to its new location (watch the moves the insertion point in the text as you move the image).

Note 2 : the code that WIT inserts in the page looks like:

<img alt="@@initial_path\image.png@comment@@" src="computed_path/image.png">

At code generation time (either for the "Preview view", either while building the whole web site), WIT analyses ALT attribute value thanks to the @@ and @ markers, and changes the 'initial_path' (local access to the resource, relative or absolute) into a 'computed_path' (relative access to the resource, as seen from the generated page code). The 'computed_path' is placed into the SRC attribute.

Meanwhile, to allow the WYSIWYG editor to properly display images, and absolute access path is mandatory in the SRC attribute: WIT also temporarily does this job.

What's more, an eventual comment (located in the ALT attribute after the @ marker) is reused in the final code.

In practical terms, for an image "image.png" placed in an "Images" subfolder of your current WIT project, you'll get the following HTML code in the HTML view :

<img alt="@@.//Images/image.png@Your comment@@" src="C:/Projects WIT/Images/image.png">

and in the generated web page, you'll get the code:

<img alt="Your comment" src="../wit-icons/image.png">

(the web site generation process has also copied the "image.png" file from your current work directory to the 'wit-icons' subfolder of the target folder that contains all the generated web site).

Keywords :  Css ; Drag & drop ; Images
Tasks
Start date2007/09/23
Due date2007/09/30
Percent finished100 %
Effective end date2007/09/23
CategoryV5.10