Call for testers: new Online Editor

Author Message

Mark Marsiglio

Thursday 29 May 2008 5:14:46 am

Christophe -

You have found a feature of the tinymce editor which has been removed because the ez publish XML block datatype will not store those attributes. The XML elements that are allowed are the ones that (are documented on this site and) are structural in nature, as opposed to presentational.

The way that you would do what you are trying to do is found in the content.ini overrides, where you can add a class to any normal XML block element that will apply CSS rules when it is presented on the page.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Christophe Lazare

Thursday 29 May 2008 5:46:12 am

Thanks.
I didn't expect such fast answers !!
Mark , do you know where find a example for "can add a class to any normal XML block element that will apply CSS rules when it is presented on the page" ...
Because it's not seems so trivial .

Mark Marsiglio

Thursday 29 May 2008 6:03:49 am

http://ez.no/doc/ez_publish/technical_manual/3_10/reference/configuration_files/content_ini/name_of_xml_tag/availableclasses

Basically you put the custom class in the content ini for the element that you want, then when you are in the online editor, you can click on the element in the status bar (at the bottom of the ezoe window), and you should see the classes that you added in the drop down list.

So, if you added

[paragraph]
AvailableClasses[]
AvailableClasses[]=pRed
AvailableClasses[]=pBlue

like the example in the doc, when it renders your text in the template it will look like this:

<p class='pRed'>My text that I had entered</p>

instead of the default which is just

<p>My text that I had entered</p>

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

André R.

Thursday 29 May 2008 6:46:17 am

You can also override the tag template (in the above case content/datatype/view/ezxmltags/paragraph.tpl) based on the class. If you want to do more then just style the tag differentially.

Example from ezwebin:

[table_cols]
Source=content/datatype/view/ezxmltags/table.tpl
MatchFile=datatype/ezxmltext/table_cols.tpl
Subdir=templates
Match[classification]=cols

You can also tweak how classes, attributes and custom attributes are handled in OE, for more info read the content.ini file in ezoe/settings.
For instance give a more human readable name on a class:

[paragraph]
# Human-readable aliases for class names that will be displayed
# in the "Class" dropdowns of OE dialog windows.
ClassDescription[pRed]=Red bar

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

Christophe Lazare

Thursday 29 May 2008 7:22:49 am

Thanks a lot !!

André R.

Friday 30 May 2008 6:57:54 am

New version out!
There will probably be one more beta before we call it the day, basically nested inline custom tags needs to be fixed and inline custom tags in ie.

Breaking changes:

* Implemented #006730: Online Editor 3.0 does not obey permissions
  Now possible to limit access to editor / relations(upload and embed properties) / search / browse
* use span tags internally for embed-inline tags so they are truly inline and linkable

Bugs / enhancements:

* Fixed bug #012989: Add a loading icon while system is searching (Insert image popup)
* added image preview in search and browse view
* Fixed bug #010888: table caption can't be added though required by WAI level 3
* added support for int / number / email custom attribute types
* added support for custom attribute validation (on email, text, int and number)
* Fixed bug #007384: Incomplete instructions for enabling OE
* Added EditorDialogCSSFileList and html classes in dialogs markup to make them easier to customize
* header level showed as 'undefined' in IE
* Fixed bug #013062: IE specific, editting an embedded image in a custom tag doesn´t work
* viewModes on links didn't work correctly (saved array key index instead of string value)
* Fixed bug #013013: Link with anchor removed on re-edit
* Made sure first valid image attribute is used on embed images
* Implemented #013076: Browse popup: improve image preview
* Implemented #013019: Move "Enable/Disable Editor" button to OE toolbar
* Implemented #009397: Missing OE Toolbar Buttons - #1 - save and #2 - publish
* Implemented #012949: Cannot change the node of an embedded object once it has been added
* properly serialize from checkbox form values to attribute values and back
* Fixed bug #013116: malformatted separator tag
* Fixed bug #013105: Adding a custom tag first locks cursor in the tag
  (also fixed on embed tags)
* Fixed related files in upload dialog not selectable

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

L G

Thursday 05 June 2008 5:26:30 am

Hello,

Thank you for this new version, which works very well !
Do you have an estimate date for version 5.0?

Guillaume Kulakowski

Thursday 05 June 2008 1:16:15 pm

I use ezOE on my new website. The URLs genereted by ezoe look like content/view/full/60.
If I edit my link with ezdhtml, I have a nice URL
Is there a solution to have ezoe and nice Urls ?

My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"

André R.

Thursday 05 June 2008 3:18:16 pm

> Do you have an estimate date for version 5.0?
When ezp 4.1 is out =)

> Is there a solution to have ezoe and nice Urls ?
I'll look into that, please create a issue for it.

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

Guillaume Kulakowski

Thursday 05 June 2008 10:45:50 pm

> @ André R.
> I'll look into that, please create a issue for it.
A have just done it : http://issues.ez.no/IssueView.php?Id=13151&activeItem=1

My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"

Bin LIU

Friday 06 June 2008 8:05:01 am

Hi, André R.

I need override the tag_link.tpl to add some specail fuction in the linkbox.

how can I active the scrollbar in the popup ?

Thanks a lot.

=== Lagardère Active ===

Fetch random
http://projects.ez.no/la_fetch_random
LA Static Cache
http://projects.ez.no/lastaticcache
LA Bookmarks (jquery)
http://projects.ez.no/labookmark
LA Calendar (jquery)
http://projects.ez.no/lacalendar

My site ez
http://lingping.info

Guillaume Kulakowski

Friday 06 June 2008 8:57:49 am

One observation. There are three alignement: "left", "right" and "center".
"Left" is a float, like "right". "Center" is a text-align=center.
But, there aren't an alignement null...

My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"

André R.

Wednesday 11 June 2008 3:37:18 am

> how can I active the scrollbar in the popup ?
Currently you have to hack the ez theme and add 'scrollbars : true,' to the windowManager.open command in _generalXmlTagPopup(). But I'll enable it by default in next version.

>One observation. There are three alignement: "left", "right" and "center".
"Left" is a float, like "right". "Center" is a text-align=center.
> But, there aren't an alignement null...

Float? what version do you use? Recent versions use alignment. Or do you talk about the output from ezwebin / ezflow templates?
Anyway, how does this differ from what you expect / the old editor?

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

Guillaume Kulakowski

Wednesday 11 June 2008 5:09:05 am

I spoke about "embed"'s options who use object-left and object-right classes.

Otherwise I just see the template operator ezoescript and ezoecss : very useful, THANKS !

But, why not use a minifier more efficient like JSmin (php version : http://code.google.com/p/jsmin-php)?

My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"

André R.

Wednesday 11 June 2008 5:41:15 am

> But, there aren't an alignement null...

I'll look into adding this then, could you add a enhancement issue for it?

> JSmin

The reason where that I was a uncertain about the performance impact. And that I wanted to minify css as well. But I'm open for changing that, will make a standby version in another extension soon, might test out JSmin then.

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

Guillaume Kulakowski

Wednesday 11 June 2008 6:41:03 am

> I'll look into adding this then, could you add a enhancement issue for it?
OK

One question: ezoescript and ezoecss template operator are in ezoe extension... But you don't use there operator in ezoe ;-) ?
Why not make a another extension ?

A little comparison about some JS minifier : http://www.llaumgui.com/post/Optimiser-ses-javascripts-:-le-cas-de-mootools
- YUI use java
- Packer is more destructive
- JSMIN seems to be a good choice…

Sorry for my english ;-)

My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"

André R.

Wednesday 11 June 2008 7:03:55 am

> But you don't use there operator in ezoe ;-) ?
It's been in use from day 1, and is the reason why you need rewrite rules in vhost mode:
http://svn.ez.no/svn/extensions/eztinymce/trunk/ezoe/design/standard/templates/content/datatype/edit/ezxmltext_ezoe.tpl

>A little comparison about some JS minifier
Size isn't my biggest concern, speed is (the overhead of minifying the css/js).

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

Guillaume Kulakowski

Wednesday 11 June 2008 7:23:15 am

It's for this reason what I dont't user packer.

My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"

Bin LIU

Thursday 12 June 2008 1:52:37 am

> how can I active the scrollbar in the popup ?
Currently you have to hack the ez theme and add 'scrollbars : true,' to the windowManager.open command in _generalXmlTagPopup(). But I'll enable it by default in next version.

Thanks a lot !

=== Lagardère Active ===

Fetch random
http://projects.ez.no/la_fetch_random
LA Static Cache
http://projects.ez.no/lastaticcache
LA Bookmarks (jquery)
http://projects.ez.no/labookmark
LA Calendar (jquery)
http://projects.ez.no/lacalendar

My site ez
http://lingping.info

Piotrek Karaś

Thursday 12 June 2008 8:58:46 am

Haven't you guys had any problems with literal class/tag in the new OE? Has anyone tried to use the built-in literal tag to store PHP/JavaScript/etc code. ?

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.