Is there a possibility to remove automatic surrounding in paragraph tag when typing text?
Example I want something like this to enter into FCK: "This is <keyword>me</keyword> typing", and I don't FCK to later convert this to: "<p>This is <keyword>me</keyword> typing</p>", since I will later process FCK output to surround output with some other tag, like: <title>This is <keyword>me</keyword> typing</title>. (output like this: "<title><p>This is <keyword>me</keyword> typing</p></title>" is not allowed!).
Example I want something like this to enter into FCK: "This is <keyword>me</keyword> typing", and I don't FCK to later convert this to: "<p>This is <keyword>me</keyword> typing</p>", since I will later process FCK output to surround output with some other tag, like: <title>This is <keyword>me</keyword> typing</title>. (output like this: "<title><p>This is <keyword>me</keyword> typing</p></title>" is not allowed!).
Re: Stopping FCKeditor from adding paragraph automatically
Re: Stopping FCKeditor from adding paragraph automatically
Hello,
I'm still looking for the same.
"imbaspam", if you fond a way could you alert me ?
Thanks
Alex
Re: Stopping FCKeditor from adding paragraph automatically
@alex51: For now I am fixing this problem by manually removing paragraph tags from FCKEditor output. I am using JAVA so I simply strreplace all <p> and </p> with none. I guess that using some JAVA XML parser this could be done more efficiently.
Still it would be better if FCKEditor could be configured in some fashion to stop adding paragraphs...
Re: Stopping FCKeditor from adding paragraph automatically
Re: Stopping FCKeditor from adding paragraph automatically
this works, but gives javascript errors in firefox.
"E.getFirst().hasAttribute is not a function."
Re: Stopping FCKeditor from adding paragraph automatically
I don't know about CKEditor, since I am using FCKEditor. Placing this line into your custom config file adds br tag at the end of line.
If you want to surround your line with something else (like div or span) you only need to replace 'br' with your desired tag.
Actually this configuration tells fck to add tag after you press enter in editor. You can also customize Shift+Enter customization by adding: in your custom configuration file.