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 :
Add a background image to the editor Captu370

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 Add a background image to the editor Submit10:
Code:
.sceditor-container iframe, .sceditor-container textarea {
    background:url(https://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


Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13225
Reputation : 2963
Language : EN, JA, FR
Location : Macungie, PA

View user profile

Back to top Go down

Tutorial Re: Add a background image to the editor

Post by skouliki on February 9th 2020, 9:28 am

This code was updated to fit in with the new HTTPS address

updated 09.02.2020 by skouliki
skouliki
skouliki
Manager
Manager

Female Posts : 8258
Reputation : 1093
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Back to top


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