0

when I'm calling in the item tpl a piece of content by:

<p>[+content:len:gt=`100`:then=`[+content:character_limit=`100`+]`:else=`[+content+]`+]</p>

there are new-lines (BR or \n\r) from tinymce. I want to remove them - how can I do that?

quardas
  • 651
  • 3
  • 10
  • 23

1 Answers1

1

The quickest way to avoid TinyMCE formatting things like this is to place them in a chunk or template variable (from personal experience).

Edit: You can also take a look at the TinyMCE plugin configuration under:

Elements > Manage Elements > Plugins (tab) > TinyMCE Rich Text Editor

You can enter custom TinyMCE parameters in the Custom Parameters textarea. Take a look at http://www.tinymce.com/wiki.php/TinyMCE_FAQ#TinyMCE_adds_BR_elements_to_my_content

Gibbs
  • 294
  • 1
  • 6
  • hmmm avoiding text formatting in tinymce is not the solution for me. But thanks for suggestion. I'll try put the alternative content without new-lines to the special tv (template variable) – quardas Jul 17 '12 at 08:23
  • You can still have TinyMCE format your content etc, just move any parts it is not handling correctly outside of it (to a chunk for example). – Gibbs Jul 17 '12 at 09:20