shift + enter in ezoe and front display

Author Message

Benoît Da Silva

Tuesday 23 June 2009 1:08:26 am

Hi,

I searched the whole forum for a solution but didn't seem to find something useful for this specific case. When I press shift + enter several times to insert new lines in the online editor (for design purpose), ezpublish doesn't save them: when I go back to the editor, the spaces aren't here anymore.

I solved this by overriding ezxml.ini settings with:

[InputSettings]
TrimSpaces=false
AllowMultipleSpaces=true

It's now ok for the backoffice, but the front still doesn't want to display those spaces correctly. I tried to add the override file of ezxml.ini in the front siteaccess, but it doesn't work at all, even after clearing caches.

Does someone know how it works and how i can solve this issue ?
I'm using "attribute_view_gui" to display texts on the front side, is there a built-in solution using this method ?

Thanks.

ps: setting content.ini's AllowEmpty to true isn't a solution for me. I really don't want <p> tags to create new lines. I wish to use shift + enter like in the old Online Editor.

Łukasz Serwatka

Monday 06 July 2009 10:59:14 am

Hi,

I suggest to check the INI settings in the administration interface. For both frontend and backend they should be the same. Check also which template is used for rendering output. Compare the one from frontend with the one from backend (turn on 'List used templates'). There might be some difference.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Perrine Léquipé

Thursday 29 July 2010 8:11:56 am

Hello,

I'm using ezoe v.5.1.0, and the solution given here doesn't work for me when I just press shift + enter several times. I need to write a space on every empty lines to make it work.

It seems logical because the settings concerns spaces and not lines, but you don't mention we need to put a space.

Is it the case and you forgot to say it ? Or is it supposed working without spaces ?

Thank you for your answer.

André R.

Wednesday 04 August 2010 1:09:00 am

> It seems logical because the settings concerns spaces and not lines, but you don't mention we need to put a space.

Correct, you still need to add a space on empty lines.

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

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 05:19:14
Script start
Timing: Jan 18 2025 05:19:14
Module start 'layout'
Timing: Jan 18 2025 05:19:14
Module start 'content'
Timing: Jan 18 2025 05:19:15
Module end 'content'
Timing: Jan 18 2025 05:19:15
Script end

Main resources:

Total runtime0.9460 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0109 589.4688152.6406
Module start 'layout' 0.01090.0066 742.109439.4766
Module start 'content' 0.01760.9267 781.5859628.9063
Module end 'content' 0.94420.0018 1,410.492212.1406
Script end 0.9460  1,422.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3654160.0002
Check MTime0.00130.1364160.0001
Mysql Total
Database connection0.00150.162410.0015
Mysqli_queries0.878792.8856640.0137
Looping result0.00060.0684620.0000
Template Total0.882393.320.4412
Template load0.00250.265720.0013
Template processing0.879892.999020.4399
Template load and register function0.00020.016410.0002
states
state_id_array0.00310.327810.0031
state_identifier_array0.00180.185120.0009
Override
Cache load0.00190.2022280.0001
Sytem overhead
Fetch class attribute can translate value0.00050.050440.0001
Fetch class attribute name0.00090.098160.0002
XML
Image XML parsing0.00170.179040.0004
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.00140.1479250.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs