Forums / Extensions / Ezoe doesn't save custom styles

Ezoe doesn't save custom styles

Author Message

Simone D'Amico

Thursday 11 November 2010 3:56:30 am

Hi,

I added the "styleselect" on TinyMCE editor because I need some custom styles. In ezoe.ini I edited the row:

Buttons[style]=formatselect,bold,italic,underline

in

Buttons[style]=formatselect,styleselect,bold,italic,underline

and now I can see the custom styles (sub, sup, break, etc.). Unfortunately, when I choose one of these styles and I save the post, all these styles aren't saved.

What could be the problem?

André R.

Thursday 11 November 2010 4:34:08 am

Only the plugins mentioned in ezoe.ini are known to work, the reason is that eZ Publish stores this as ezxml which has a strict content vs design separation and thus does not support inline styles unless you implement it your self with custom tags / attributes (see content.in and ezoe_attributes.ini).

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

Simone D'Amico

Thursday 11 November 2010 6:13:40 am

I resolved the problem, I think it's a bug of TynyMCE.

So, I'd already enabled custom styles in content.ini but in Google Chrome if styles have capital letters, it doesn't work.

For example, one of default styles is pRed with the letter "r" capitalized. If you use Google Chrome, it loads styles with lowercase letters (pred) and this style isn't created in the content.ini, so eZ doesn't save it.