How to keep whitespaces entered in a bloc text ?

Author Message

Sébastien Antoniotti

Thursday 08 February 2007 1:10:33 am

Hi,

I have a problem with the bloc text because he don't keep me multiple whitespaces between words.

By example, if I enter "word[space][space][space]word2", the final outpout after saving and display is "word[space]word2" (or "word word2").

Can someone know how to keep this whitespaces ?

Thanks in advance !

eZ Publish Freelance
web : http://www.webaxis.fr

J-A Eberhard

Thursday 08 February 2007 2:03:36 am

In override/ezxml.ini.append.php add the followings:
[InputSettings]
TrimSpaces=false
AllowMultipleSpaces=true
Ckear the cache and you are done.... (at least in ezdhtml - for 'pure' text bloc I'n not sure if it's possible).

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

Sébastien Antoniotti

Thursday 08 February 2007 2:25:42 am

Hi,

Thanks for your help, it works fine with the xml bloc but not with the text bloc.

Maybe I can use the xml bloc, but I have to hide the toolbar because I don't permit users to format the text, insert links, etc.

did you know how to make this ?

eZ Publish Freelance
web : http://www.webaxis.fr

J-A Eberhard

Thursday 08 February 2007 4:19:40 am

The Online Editor is seen as a module in the policy configuration, just don't give them access to it.

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

Sébastien Antoniotti

Thursday 08 February 2007 5:09:35 am

In the anonymous role I juste have this :

content  read  Section( Standard )  
content  pdf  Section( Standard )  
user  login  SiteAccess( fr )  
articlerate  toutes les fonctions  Aucune limitation  

So the OE is not specially authorized, and by default, all that is not authorized is prohibited no ?

Moreover, I would want to enable the OE on certain classes, and not on other classes.

eZ Publish Freelance
web : http://www.webaxis.fr

Christian Stangier

Friday 18 May 2007 7:21:09 am

Hi,

does anybody know how to avoid the removal of several newlines in a file as well?

Greetings,
Chris.

Normando Hall

Monday 04 June 2007 9:42:46 pm

http://issues.ez.no/8031

Normando Hall
Rosario - Argentina

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 19:39:25
Script start
Timing: Jan 18 2025 19:39:25
Module start 'layout'
Timing: Jan 18 2025 19:39:25
Module start 'content'
Timing: Jan 18 2025 19:39:26
Module end 'content'
Timing: Jan 18 2025 19:39:26
Script end

Main resources:

Total runtime1.1211 sec
Peak memory usage4,096.0000 KB
Database Queries73

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0096 589.4688152.6406
Module start 'layout' 0.00960.0031 742.109439.4766
Module start 'content' 0.01271.1071 781.5859663.7578
Module end 'content' 1.11980.0013 1,445.343816.1250
Script end 1.1211  1,461.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.3608160.0003
Check MTime0.00180.1606160.0001
Mysql Total
Database connection0.00140.124910.0014
Mysqli_queries1.056194.2006730.0145
Looping result0.00070.0607710.0000
Template Total1.086296.920.5431
Template load0.00200.180720.0010
Template processing1.084196.700620.5421
Template load and register function0.00010.009010.0001
states
state_id_array0.00100.089510.0010
state_identifier_array0.00170.150220.0008
Override
Cache load0.00170.1503390.0000
Sytem overhead
Fetch class attribute can translate value0.00080.074340.0002
Fetch class attribute name0.00080.0727100.0001
XML
Image XML parsing0.00320.288740.0008
class_abstraction
Instantiating content class attribute0.00000.0016130.0000
General
dbfile0.00270.2428270.0001
String conversion0.00000.000840.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
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs