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....

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 16:38:05
Script start
Timing: Jan 30 2025 16:38:05
Module start 'layout'
Timing: Jan 30 2025 16:38:05
Module start 'content'
Timing: Jan 30 2025 16:38:05
Module end 'content'
Timing: Jan 30 2025 16:38:05
Script end

Main resources:

Total runtime0.0242 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.2656151.2266
Module start 'layout' 0.00500.0042 739.4922220.7188
Module start 'content' 0.00920.0135 960.2109997.6328
Module end 'content' 0.02270.0015 1,957.843829.9922
Script end 0.0241  1,987.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002610.8982140.0002
Check MTime0.00114.5816140.0001
Mysql Total
Database connection0.00083.173110.0008
Mysqli_queries0.002912.109430.0010
Looping result0.00000.058210.0000
Template Total0.00114.410.0011
Template load0.00083.144510.0008
Template processing0.00031.216210.0003
Override
Cache load0.00052.209410.0005
General
dbfile0.00239.646580.0003
String conversion0.00000.034540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs