Jump to:

23550 Posts in 19336 Topics by 2890 members

General Questions

SilverStripe Forums » General Questions » tinyMCE force_br_newlines does not work

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1950 Views
  • tekilla83
    Community Member
    20 Posts

    tinyMCE force_br_newlines does not work Link to this post

    Hi all,

    I've problems with tinyMCE. I want to have <br /> as newlines when I paste something from Word.
    Since update to 2.4.5 it uses <p>.
    I tryed the force_br_newlines option but it doesn't work.

    In my config.php:

    Object::add_extension("LeftAndMain", "MyLeftAndMainDecorator");

    MyLeftAndMainDecorator.php looks like this:

    class MyLeftAndMainDecorator extends LeftAndMainDecorator
       function init()   {
          $htmlEditorConfig = HtmlEditorConfig::get('cms');

    paste_strip_class_attributes or paste_remove_styles theme to work.

    Any Ideas?

  • IOTI
    Community Member
    189 Posts

    Re: tinyMCE force_br_newlines does not work Link to this post

    I haven't tested but check out - http://tinymce.moxiecode.com/wiki.php/Configuration:force_br_newlines

    Looks like there might be another option or two you have to modify to make it work correctly.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.