Forums / General / How to keep whitespaces entered in a bloc text ?

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

eZ debug

Timing: Jan 18 2025 18:15:34
Script start
Timing: Jan 18 2025 18:15:34
Module start 'content'
Timing: Jan 18 2025 18:15:35
Module end 'content'
Timing: Jan 18 2025 18:15:35
Script end

Main resources:

Total runtime1.1335 sec
Peak memory usage4,096.0000 KB
Database Queries210

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0099 587.8359180.8203
Module start 'content' 0.00990.9845 768.6563668.8516
Module end 'content' 0.99440.1391 1,437.5078341.0625
Script end 1.1334  1,778.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.3743210.0002
Check MTime0.00150.1349210.0001
Mysql Total
Database connection0.00170.148010.0017
Mysqli_queries0.974385.95452100.0046
Looping result0.00270.24122080.0000
Template Total1.024590.420.5122
Template load0.00250.220520.0012
Template processing1.022090.160420.5110
Template load and register function0.00010.009410.0001
states
state_id_array0.00090.083210.0009
state_identifier_array0.00100.092120.0005
Override
Cache load0.00220.1931390.0001
Sytem overhead
Fetch class attribute can translate value0.00170.147750.0003
Fetch class attribute name0.00140.1264100.0001
XML
Image XML parsing0.00200.177550.0004
class_abstraction
Instantiating content class attribute0.00000.0026130.0000
General
dbfile0.00470.4163380.0001
String conversion0.00000.000930.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs