FCKeditor and unwanted &nbsp

Author Message

Benjamin Lemoine

Monday 06 March 2006 6:51:17 am

Hello all!

I've the same problem as Fraser : http://ez.no/community/contribs/applications/fckeditor_transparent_integration (comments)

FCKeditor adds two &nbsp before the first paragraph.
Is there someone who knows how to remove those automatic spaces ?

Thanks!

Benjamin Lemoine

Friday 10 March 2006 3:12:00 am

No ideas about it ?

Samuel Sauder

Friday 10 March 2006 6:17:45 am

Just letting you know that I have run into problems with the nbsp too. Although I can't remember the details now and can't test it for you. I've now purchased the Online Editor because I'm tired of the bugs and am ready to move into production.

Benjamin Lemoine

Friday 10 March 2006 7:03:43 am

We are actually thinking about buying the Online Editor but the version we need cost around 2100$ (updating server version). That's why we're trying all the possibilities for the moment.

Thanks ( and always need a solution :( )
Benjamin.

Stephen Martin

Monday 13 March 2006 10:34:42 am

I'm experiencing the same problem with the unwanted spaces at the beginning of the first paragraph. I'm on ezpub 3.6.3. I'm very much interested in a solution to this problem.

Alexandre Nion

Monday 13 March 2006 12:56:06 pm

Hi all,

The "nbsp" problem seems to come from the literal view handler. In order to correct it, you should replace the file "extension/fckeditor/design/standard/templates/content/datatype/view/ezxmltags/literal.tpl" by the code below:

{if ne( $classification|trim, 'html' )}
<pre{if ne($classification|trim,'')} class="{$classification|wash}"{/if}>{$content|wash(xhtml)}</pre>
{else}
{$content}
{/if}

(overwrite all the previous content of file)
Then it shouldn't place any more spaces at the beginning.
Hope it will help

Stephen Martin

Monday 13 March 2006 1:38:57 pm

Alexandre,

Your code fixed the problem! Thanks very much for posting the fix.

Benjamin Lemoine

Monday 13 March 2006 11:57:07 pm

Yes, it fixed my problem too.

Thanks a lot for your help.

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 18 2025 11:17:37
Script start
Timing: Jan 18 2025 11:17:37
Module start 'layout'
Timing: Jan 18 2025 11:17:37
Module start 'content'
Timing: Jan 18 2025 11:17:37
Module end 'content'
Timing: Jan 18 2025 11:17:37
Script end

Main resources:

Total runtime0.6725 sec
Peak memory usage4,096.0000 KB
Database Queries76

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 587.9141152.6250
Module start 'layout' 0.00550.0032 740.539139.4453
Module start 'content' 0.00870.6621 779.9844587.2969
Module end 'content' 0.67080.0016 1,367.281316.1641
Script end 0.6724  1,383.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4989160.0002
Check MTime0.00130.1946160.0001
Mysql Total
Database connection0.00070.098310.0007
Mysqli_queries0.615591.5309760.0081
Looping result0.00090.1275740.0000
Template Total0.640295.220.3201
Template load0.00200.291020.0010
Template processing0.638294.899420.3191
Template load and register function0.00020.032010.0002
states
state_id_array0.00080.122710.0008
state_identifier_array0.00140.202120.0007
Override
Cache load0.00160.2440310.0001
Sytem overhead
Fetch class attribute can translate value0.00090.129840.0002
Fetch class attribute name0.00130.186280.0002
XML
Image XML parsing0.00070.104440.0002
class_abstraction
Instantiating content class attribute0.00000.001980.0000
General
dbfile0.00070.1104100.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
8content/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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs