Hello,
I've been researching through endless posts on various message boards but I can not find a working solution for my problem.
I have a brand new installation of WordPress 3.9.1 and installed CKEditor 4.
For my pages I am using a custom field which uses the "Custom Field Template" Plug in version 2.2.1.
My custom field template calls the CKEditor 4 for text input but every time I get automatically <p> Tags put right infront of my text. All I actually want to input in this field is some raw text and then I assign a color to it using the CKEditor. So my text field looks something like this:
<span style="color:#FFD700;">LEBEN</span>
But after saving CKEditor puts <p> Tags on it:
<p><span style="color:#FFD700;">LEBEN</span></p>
I tried the following:
I went into the CKEditor ->File Editor and put the following code into the config.js file:
CKEDITOR.editorConfig = function(config) {
config.autoParagraph = false;
config.fillEmptyBlocks = false;
config.shiftEnterMode = CKEDITOR.ENTER_P;
config.enterMode = CKEDITOR.ENTER_BR;
.....
I left the rest of the file just like it came installed. Yet the <p>s are getting added.
The solution to just use <divs> doesn't work in my case either. I just want those automatic <p>s gone.
Can anybody help me? I don't know what to do any more.
with kind regards
Superhero360
