• FIX: Using the align image syntax causes the image to appear outside the content area.

    By Andrew Luke 2 decades ago

    I had a small amount of text at top of content, inserted an image beneath it using [image:myimage.gif left] and the image appeared where the image code was, however as it was long it appeared over and outside the content area, extending over the 'last edited by' text, etc.



    The fix I applied was rather than to use the img "align" property, use a div tag. The code in question can be found in the WikiPage.class in the convertSingleBracket() function. Code is as follows;



    Elseif (Lcase(rightText) = "right") Or (Lcase(rightText) = "left") Then

    'newText = newText &amp; | align=&quot;| &amp; rightText &amp; |&quot;&gt;| &lt;&lt;&lt; old code<br/>
     newText = |&lt;div align=&quot;| &amp; rightText &amp; |&quot;&gt;| &amp; newText &amp; |;&quot;&gt;&lt;/div&gt;| 'bug fix<br/>
    



    (Windows XP, IE 6.0.2900.2180 SP2)