Forums / Setup & design / FCKeditor and unwanted &nbsp

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.

eZ debug

Timing: Jan 18 2025 04:14:04
Script start
Timing: Jan 18 2025 04:14:04
Module start 'content'
Timing: Jan 18 2025 04:14:05
Module end 'content'
Timing: Jan 18 2025 04:14:05
Script end

Main resources:

Total runtime1.5683 sec
Peak memory usage4,096.0000 KB
Database Queries213

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 588.8281180.8359
Module start 'content' 0.00801.3908 769.6641592.3750
Module end 'content' 1.39890.1694 1,362.0391337.1953
Script end 1.5682  1,699.2344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.2412210.0002
Check MTime0.00140.0885210.0001
Mysql Total
Database connection0.00080.053610.0008
Mysqli_queries1.487194.81822130.0070
Looping result0.00220.14092110.0000
Template Total1.530797.620.7653
Template load0.00220.137820.0011
Template processing1.528597.459320.7642
Template load and register function0.00010.007810.0001
states
state_id_array0.00120.077210.0012
state_identifier_array0.00150.094220.0007
Override
Cache load0.00170.1101310.0001
Sytem overhead
Fetch class attribute can translate value0.00120.075650.0002
Fetch class attribute name0.00110.069680.0001
XML
Image XML parsing0.00070.044650.0001
class_abstraction
Instantiating content class attribute0.00000.000880.0000
General
dbfile0.00340.2157210.0002
String conversion0.00000.001730.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs