[Yanel-dev] Fwd: AW: [magnolia-user] Alternative richtext editor / TinyMCE

Michael Wechner michael.wechner at wyona.com
Fri Nov 5 12:08:18 CET 2010


Maybe something to learn from ....

Cheers

Michael

-------- Original Message --------
Subject: 	AW: [magnolia-user] Alternative richtext editor / TinyMCE
Date: 	Fri, 5 Nov 2010 10:37:52 +0000
From: 	Unger, Richard <Richard.Unger at lfrz.at>
Reply-To: 	Magnolia User-List <user-list at magnolia-cms.com>
To: 	Magnolia User-List <user-list at magnolia-cms.com>



Hi JC!

We=E2??ve just finished the first version of our integration of the =

CKEditor v3.0. Features are:

-More or less =E2??drop-in=E2?? replacement for magnolia=E2??s older FCKEdi=
tor =

module

-Configurable at the Module, Site and Dialog Control levels with the =

ability to override settings at the more specific level

-Configuration options for toolbar/functions, for colours, for formats =

and, importantly, for available styles

-Ability to pick images and files from DMS via Repository Browser

-Image-Preview within the Repository Browser when picking images

-Ability to upload new images and files to DMS from within file-picker

In the first version, our design goals included not to modify the =

standard distribution of CKEditor (although we do extend it by providing =

a css-skin that is more magnolia-like), nor to modify any parts of =

magnolia itself (although we did of course extend magnolia with our own =

module).

Integrating the editor itself was nearly trivial =E2?? CKEditor is very =

easy to integrate.

Problem areas of the integration were as follows:

-Integration of Image-Picker / File-Picker =C3 this was very difficult to =

accomplish without modifying magnolia, and at the moment, essentially =

amounts to a huge, ugly javascript =E2??hack=E2??, which ties magnolia=E2??=
s =

RepositoryBrowser in with CKEditor.

-Links and Link management: for the editor to display items correctly =

(images, links, embedded flash, anything involving a URL) the URLs have =

to be set correctly (including context path, etc=E2?=A6). Magnolia would =

prefer to deal with the links as UUIDs. The FCKEditor-Module=E2??s =

Link-Transformation (which we reuse for our CKEditor) is a bit ugly, IMHO.

The result now works quite well, but still has some shortcomings:

-CKEditor=E2??s image plugin provides far too much control for our =

purposes: you can explicity set things like image height and width, =

border width, css styles and more. We don=E2??t want our editor=E2??s to be =

able to set all this, as they will mess up the site=E2??s layout. However, =

CKEditor does not allow for configuration of these fields.

-The Link-Handling is very ugly, the context-root is displayed in the =

URL-field of the image properties dialog (rather than just the =

repository path), the user could manually edit the URL and create =

problems that way.

-The inserted HTML does not suit our needs. Ideally, when inserting an =

image,  we would like to insert not just an <img> tag, but a surrounding =

<div>, a caption, some javascript to enlarge the image, etc=E2?=A6 None of =

this is possible by just configuring CKEditor.

-The repository browser could be improved, the preview function is still =

fairly basic. The massively ugly javascipt hack I made to integrate it =

virtually guarantees that the solution will not =E2??last long=E2?? (surviv=
e =

many magnolia upgrades without modification)

-Inserted images are the =E2??original=E2?? version. There is no easy way t=
o =

pick a DAM variation of an image.

So I think that a second version of our CKEditor plugin is likely to =

follow, which improves the integration by:

-Providing an alternative, custom image plugin for CKEditor which has a =

vastly reduced number of settable options, but in addition:

oallows selecting DAM variations for the images,

ohandles the UUID / Preview URL better,

odisplays the URLs better for the user,

ohandles magnolia metadata to pre-fill image attributes like the alt, =

title, caption

oand inserts custom (configurable) HTML for the images rather than just =

basic <img> tags.

-Providing a complete replacement for magnolia=E2??s Repository Browser whi=
ch:

oshows image and document previews and meta-information while browsing

oallows uploads from within the picker

oallows creating new folders from within the picker

oharmonizes well with our custom CKEditor image plugin

-If possible, replacing the current LinkTransformer mechanism with =

something that is a bit cleaner

Note that we examined other editors prior to starting, including =

TinyMCE, Kupu, BXE, Aloha Editor and others, and determined that (for =

us) CKEditor was both most powerful and easiest to integrate.

As a guideline, if you have magnolia experience and are a good java =

coder, a basic integration should be possible in under a week. A more =

advanced integration as described above I would estimate at about 2-3 =

weeks + testing.

Regards from Vienna,


Richard Unger

*Von:*user-list-owner at magnolia-cms.com =

[mailto:user-list-owner at magnolia-cms.com] *Im Auftrag von *Jan Christian =

Haddorp
*Gesendet:* Donnerstag, 04. November 2010 20:30
*An:* user-list at magnolia-cms.com
*Betreff:* [magnolia-user] Alternative richtext editor / TinyMCE

Hi,

Are there any experiences in using a different richtext editor - means =

not FckEditor.
What has to be done to switch to an editor like TinyMCE or the =

InnovaStudio Editor?

Thanks a lot, JC



------------------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe at magnolia-cms.com>
----------------------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wyona.org/pipermail/yanel-development/attachments/2010110=
5/0cff2ff2/attachment-0001.htm


More information about the Yanel-development mailing list