News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How to add a picture in the Texteditor (Inputfield)

Started by Draffi, September 28, 2013, 07:44:32 AM

Previous topic - Next topic

Draffi

@margarett:

have this in my index.css

nothing changed....

margarett

I think it was in editor.css, not index.css

Can you tell us the changes you did?

But TBH, me vs. CSS: 0-1 :P
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Draffi

Editor.css was the right file.

the picture is gone, when i start to enter text, but only without WYSIWYG-Editor.

Furthermore, i added this in the editor.css:

.editor, .rich_editor {
    background-image: url("../images/editor.png") no-repeat;
    background-repeat: no-repeat;
    background-position: center top;
    overflow: auto;
}

.editor:focus, .rich_editor:focus {
    background-image: none;
}


With this, the picture appear only once and centered. GREAT!!!

How can i fix this (repeating & picture stay in the window) for the editor.js, if WYSIWYG is turned on ?

Draffi

I see now another issue:

When i mark some text and click on a BBC-Button, the picture in the background appear for some milliseconds, is like a flash.



Draffi

Was reading. But how can this help me for to turn-off the "flashing" background, when i click on a BBC-Button?

I need to set an additional background-color...?

Advertisement: