Editor Background in Edit Mode

Oft gestellte Fragen
Gert
Posts: 1039
Joined: Sun 18. Nov 2012, 14:18

Editor Background in Edit Mode

Postby Gert » Fri 1. Feb 2013, 12:31

Image Different backgrounds for Template and EditorArea of Editor:
Image Unterschiedliche Hintergründe für Template und EditorArea des Editor:

Image 1. The Editor uses (by default in CMSimple) for the EditorArea the values of body {background: #xyz;} in the stylesheet.css of the template.
Image 1. Der Editor nimmt (im Auslieferungszustand CMSimple) für die EditorArea die Werte von body {background: #xyz;} in der stylesheet.css des aktiven Templates.

stylesheet.css

Code: Select all

body {background: #000; ...;}  // black background for Template AND Editorarea


Image 2. You can define different backgrounds for Template and EditorArea by giving the body an id, there you can define the values for the template-background.
Image 2. Du kannst unterschiedliche Hintergründe für Template und EditorArea definieren, indem Du dem body-tag eine id gibst und dort die Werte definierst, die Du als Template-Hintergrund haben willst.

stylesheet.css

Code: Select all

body {background: #fff; ...;} // white background for EditorArea

#anything {background: #000; ...;} // black background for the Template


Image 3. Give the body-tag of the template.htm the "id" you have defined in the stylesheet.css:
Image 3. Gib dem body-tag im Template die in der stylesheet.css definierte "id":

template.htm

Code: Select all

...
<body id="anything" <?php echo onload();?>>
...

Image Now the Template have a black background (#fff) and the EditorArea a white background (#fff).
Image Jetzt hat das Template einen schwarzen Hintergrund (#000) und die EditorArea einen weissen (#fff).

Tags: FCKeditor TinyMCE background background-color Hintergrund editorarea textarea
Gert Ebersbach | CMSimple | Templates - Plugins - Services

Return to “FAQ - Frequently asked Questions”

Who is online

Users browsing this forum: No registered users and 1 guest