Forums / Setup & design / shift + enter in ezoe and front display

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