• This is a very handy plugin, however I noticed it seems to have issues with line breaks in the values.

    For example, if I have an option name of content_style and the value of:

    body#tinymce {margin: 0 10px; font-family: sans-serif; }table.mce-item-table {width:100%;} .frame{margin: 4px;padding: 4px;background: #EEE;border: 1px solid #CCC;}

    where everything is on one line, it works fine.

    However if I use the same value, but enter line breaks to make it readable, like:

    body#tinymce {margin: 0 10px;	font-family: sans-serif; }
    table.mce-item-table {width:100%;}
    .frame{margin: 4px;padding: 4px;background: #EEE;border: 1px solid #CCC;}

    it causes JavaScript errors and TinyMCE won’t even load.

    Any way to handle the breaks? Thanks.

    https://ww.wp.xz.cn/plugins/advanced-tinymce-configuration/

Viewing 1 replies (of 1 total)
  • Plugin Author Andrew Ozz

    (@azaozz)

    I’m afraid no. Both the name and value have to follow JS syntax. It doesn’t allow line breaks in strings.

Viewing 1 replies (of 1 total)

The topic ‘Line breaks in values causing errors’ is closed to new replies.