Add a background image to the editor

Go down

Tutorial Add a background image to the editor

Post by Ange Tuteur on March 17th 2014, 10:32 am

Add a background image to the editor


The following trick will allow you to add a background image to the text editor of your Forumotion forum, just like on the support forum :

To reproduce this trick, no conditions should be met. This applies to all forum versions.


Modifying the stylesheet

Go to Administration Panel ► Display ► Colors ► CSS stylesheet. It's here that the change will happen.

Add the following code and click :
Code:
.sceditor-container iframe, .sceditor-container textarea {
    background:url(http://illiweb.com/fa/empty.gif) !important;
}

Modifying the code :
background defines the background of an element.
url(https://illiweb.com/fa/empty.gif) : replace https://illiweb.com/fa/empty.gif with the URL of the image that you want to appear in the editor.

You can even choose to customize this background :

background-repeat :
--- repeat-y : repeats the background on the vertical axis
--- repeat-x : repeats the background on the horizontal axis
--- no-repeat : prevents the background from repeating

background-position :
--- top / middle / bottom : aligns the image on the vertical axis
--- left / center / right : aligns the image on the horizontal axis


avatar
Ange Tuteur
Forumaster

Male Posts : 13206
Reputation : 2928
Language : EN, JA, FR
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum