Page 1 of 1

Float text/text align for images

Posted: Sat Mar 09, 2019 12:14 pm
by Jesper Møller
whenoploading images to be placed inline i would be nice with an option to be able to choose float text beside the image

i imagen a float left/right option

Re: Float text/text align for images

Posted: Sat Mar 09, 2019 11:14 pm
by AbaddonOrmuz
It can be easily done with a custom BBCode or with an extension adding extra parameters to the default [img] BBCode.

Re: Float text/text align for images

Posted: Sun Mar 10, 2019 11:11 am
by HiFiKabin
Exactly so

BBCode Usage:

Code: Select all

[imageleft]{URL}[/imageleft]
HTML Replacement:

Code: Select all

<img src="{URL}" style="float:left;padding-right: 5px;" />
Help Line:

Code: Select all

Any text added after [/imageleft] will be wrapped around the image.
and

BBCode Usage:

Code: Select all

[imageright]{URL}[/imageright]
HTML Replacement:

Code: Select all

<img src="{URL}" style="float:right;padding-right: 5px;" />
Help Line:

Code: Select all

Any text added after [/imageright] will be wrapped around the image.

Topic Locked