• petervanderdoes

    (@petervanderdoes)


    Is it possible to stop CKEditor from modifying the text on startup.

    Currently posts are written like this:

    <p>some text<br />
    <br />
    More text</p>

    When editing the post and start is visual CKEditor changes this to:

    <p>some text</p>
    <p>More text</p>

    The following config doesn;t help:

    config.shiftEnterMode = 1;
    	config.enterMode = 2;
    	config.autoParagraph = false;

Viewing 4 replies - 1 through 4 (of 4 total)
  • webworksbd

    (@webworksbd)

    I think it will be good if you made the div and then define that div at his post.

    Thread Starter petervanderdoes

    (@petervanderdoes)

    @webworksbd Made what the div?

    As a background, this is a client with over 20,000 posts and right now, if they ever decided to edit a post it would break the layout as they have it.

    With the above settings, creating a new post with a double
    , that section will also be converted to a <p> when editing again.

    webworksbd

    (@webworksbd)

    oh i understand that’s a large data.

    if there something from this url can help you ? http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html

    Thread Starter petervanderdoes

    (@petervanderdoes)

    Not really

    Here’s another interesting fact.
    When you edit a post and the startup is Visual, the post is changed.
    When you edit a post and the startup is HTML and you click Visual the post isn’t changed.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Stop auto formatting’ is closed to new replies.