The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Add a background image to the editor

View previous topic View next topic Go down

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(http://illiweb.com/fa/empty.gif) : replace http://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



Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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