Forums / Setup & design /   being added after bold tag????

  being added after bold tag????

Author Message

Andy Boston

Monday 06 September 2010 6:50:45 am

We're implementing 4.3 on our new site and something strange is happening whereby is being added after some bold tags

<<span class="start-tag">b</span>>OAG SSIM File</<span class="end-tag">b</span>>
&<span class="entity">nbsp</span>

Anyone got any ideas as to why this would be happening???

Steven Bressey

Monday 06 September 2010 7:44:49 am

Hello Andy,

I noticed this problem on several sites we developped in 4.x and still haven't found a solution.

I also really need to remove the extra that is generated after every bold text, so if anyone has a solution, I would be very interested.

http://www.alma.fr

André R.

Tuesday 07 September 2010 3:05:27 am

Is this copy and paste from somewhere?

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Steven Bressey

Tuesday 07 September 2010 4:36:00 am

In my case, no it is not.

The text always comes from typing in ezoe and then I use ezoe formatting buttons.

http://www.alma.fr

Yannick Komotir

Tuesday 07 September 2010 6:09:14 am

Hi,

Which browser is used ? Can you try to override default strong.tpl by creating your own in your design ?

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

Steven Bressey

Tuesday 07 September 2010 6:33:08 am

I get the same result when editing content wether I use Internet Explorer (7) or Firefox (3.5).

The " " doesn't come from strong.tpl but more likely from paragraph.tpl.

Here is what I get in the source code of the page with debug :

<span class="comment"><!-- START: including template: extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tpl (design:content/datatype/view/ezxmltags/paragraph.tpl) --></span>
<<span class="start-tag">p</span>>
<span class="comment"><!-- START: including template: design/standard/templates/content/datatype/view/ezxmltags/strong.tpl (design:content/datatype/view/ezxmltags/strong.tpl) --></span>
<<span class="start-tag">b</span>>Puis du gras</<span class="end-tag">b</span>>

<span class="comment"><!-- STOP: including template: design/standard/templates/content/datatype/view/ezxmltags/strong.tpl (design:content/datatype/view/ezxmltags/strong.tpl) --></span>
&<span class="entity">nbsp;</span>et juste après du texte normal.</<span class="end-tag">p</span>>

<span class="comment"><!-- STOP: including template: extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tpl (design:content/datatype/view/ezxmltags/paragraph.tpl) --></span>

<span class="comment"><!-- START: including template: extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tpl (design:content/datatype/view/ezxmltags/paragraph.tpl) --></span>
<<span class="start-tag">p</span>>&<span class="entity">nbsp;</span>Et 
<span class="comment"><!-- START: including template: design/standard/templates/content/datatype/view/ezxmltags/strong.tpl (design:content/datatype/view/ezxmltags/strong.tpl) --></span>
<<span class="start-tag">b</span>>alors</<span class="end-tag">b</span>>

I then had a look at the template file : extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tpl :

{set $classification = cond( and(is_set( $align ), $align ), concat( $classification, ' text-', $align ), $classification )}
<p{if $classification|trim} class="{$classification|wash}"{/if}>
{if eq( $content|trim(), '' )} {else}{$content}{/if}
</p>

The thing is, the $content variable is not empty as it contains some text ("et juste après du texte normal" ) , so I don't think the problem comes from this template but it is more likely "added/generated by eZpublish" at the beginning of the content when submitting changes. I noticed that sometimes you have to edit the content twice in order to get the " ".

I removed the test on $content in the template, so that the code became :

{set $classification = cond( and(is_set( $align ), $align ), concat( $classification, ' text-', $align ), $classification )}
<p{if $classification|trim} class="{$classification|wash}"{/if}>
{$content}
</p>

But the result is the same ...

I really think this comes from the kernel and/or ezoe, but the question is where ??

I already spent hours looking in the code but could not find it.

Edit : The eZ forum "literal text" generates some extra tags : span class="comment" so the source code you can see in this post is not exactly the same as the real one.

http://www.alma.fr

eZ debug

Timing: Jan 18 2025 00:52:27
Script start
Timing: Jan 18 2025 00:52:27
Module start 'content'
Timing: Jan 18 2025 00:52:28
Module end 'content'
Timing: Jan 18 2025 00:52:28
Script end

Main resources:

Total runtime1.0840 sec
Peak memory usage4,096.0000 KB
Database Queries207

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.7266180.8359
Module start 'content' 0.00580.9382 768.5625679.8984
Module end 'content' 0.94400.1400 1,448.4609341.0859
Script end 1.0839  1,789.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.3452210.0002
Check MTime0.00150.1340210.0001
Mysql Total
Database connection0.00070.062110.0007
Mysqli_queries0.992891.58592070.0048
Looping result0.00270.24562050.0000
Template Total1.059597.720.5298
Template load0.00200.184420.0010
Template processing1.057597.555220.5288
Template load and register function0.00010.009510.0001
states
state_id_array0.00070.063910.0007
state_identifier_array0.00080.075020.0004
Override
Cache load0.00170.1563390.0000
Sytem overhead
Fetch class attribute can translate value0.00160.143150.0003
Fetch class attribute name0.00140.1311100.0001
XML
Image XML parsing0.00260.237350.0005
class_abstraction
Instantiating content class attribute0.00000.0022120.0000
General
dbfile0.00340.3140460.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs