Forums / Developer / how to have the raw text in a custom tag?

how to have the raw text in a custom tag?

Author Message

raphael bauduin

Sunday 24 January 2010 6:09:09 am

I have a custom tag to use the jsvascript syntax highlighter (http://alexgorbatchev.com/).

However, when I add text to the custom tag, the ditor adds <p> tags that are then displayed in the output. If I unput this test

line 1 and

line2 and

line three

The source code displayed and highlighted by is this:

<p>line 1 and<p></p>line2 and</p><p>line three</p>

I guess the <p> tags are added by the editor.

How can I prevent this behaviour? I have tested with the literal custom tag and get the same behaviour.

I'm on ez 4.0.

Thanks in advance.

Raph

raphael bauduin

Sunday 24 January 2010 6:55:44 am

I have tried to work with an inline custom tag (as explained at http://ezpedia.org/en/solution/inserting_inline_client_script_into_content_using_a_custom_tag), but then I can't have newlines as all the text has to be put in a one line field when defining the tag....