On Nov 4, 2010, at 8:30 PM, Jan Christian Haddorp wrote: > 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?
That is a very loaded question. What you ultimately want is write equivalent of m-m-fckeditor. There was one switch done already in the past (Magnolia was originally using kupu and not fck). And you might also want to look at the integration of codepress for template editing since it is just another example of this kind of integration. And I vaguely remember some other folk doing another code editor integration (Adam/Brian/Frank ???) In terms of the steps, what you need is - write a control that can display such editor in magnolia dialog and is able to store html produced by the editor in node data(s) and load it back into editor when opening a dialog - you would also need to make sure all resources (JS, CSS, ...) needed by such editor are loaded - register such a control and you are done in the next phase what you want to do is probably allow configuration of various editor features via the control instance nodes same way as it is done for other controls and last but not least (and probably most complicated) you would want to integrate link management and file upload features of the editor with Magnolia. - For the links you would need to write or reuse some sort of tree/list browser and transform all the links during storage to the uuidlink pattern (and transfer them back upon display). The transformation is necessary since Magnolia needs to be able to identify those links and render them differently based on whether this is autor or public or multisite or various other scenarios. - upload can be solved in the simplest way same as for the FCK by storing the binary directly in the website node. If you feel more adventurous you might want to again write/plug some sort of server browser that allows one to specify location of the file directly in DMS (or elsewhere). If you decide to go for it, please keep us posted on the progress ... and you might consider developing in on the forge and allowing others to participate as well. HTH, Jan > > Thanks a lot, JC > ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
