[xwiki-dev] tiny_mce and the integration into xwiki

Ludovic Dubost ludovic at xwiki.com
Wed Feb 28 10:21:26 CET 2007


Hi Christian,

This is great news indeed. We definitively need some help refactoring 
the WYSIWYG Editor.
I've had some ideas also on how to improve things in the future. We 
could also setup a branch so that we can share the work done and test it.
I also have some questions about how you did this. Did you refactor the 
conversion code from the existing conversion or did you wrote the 
convertor from scratch ?
Maybe the interested people in this thread could plan an online meeting 
in IRC or Skype to discuss the architecture.

I count:

Christian Gmeiner
Mathieu EMPTOZ
Phung Nam who is the core team is responsible for the WYSIWYG Editor
Ludovic Dubost (myself)

Maybe Sergiu and/or Vincent from the Core team would like to participate.

When would be a good time knowing that morning is better ?

Ludovic

Christian Gmeiner a écrit :
> Good news... I have written two tiny_mce plugins:
> * xwiki -> converts html to xwiki syntax
> * xwikimacro -> show macro dialog
>
> I have done only some parts of the convertion - bold, italc and it
> works very fine. I am reading into the plugin api more deeply so that
> we could provide a better interaction - e.g. links dialog as we know
> it, or image dialg as we know it.
>
> I think that are very good news :)
> greets,
> austriancoder
>
> 2007/2/23, Christian Gmeiner <christian.gmeiner at gmail.com>:
>> Hi...
>>
>> i have looked into the source of the wysiwyg editor stuff and i must
>> say, it is a hack.
>> At the moment this is the structure:
>>
>> tiny_mce --> plugins
>> |
>> |
>> wiki_editor --> own plugins (attachments and macros)
>> |
>> |
>> wysiwyg.vm
>>
>>
>> I think that this is very complex and hard to maintain. Here is my
>> idea how to do it better.
>> 1) Write a tiny_mce plugin called "xwikiMacro" which allows the user
>> to add XWiki macros into
>> his page with the help of tiny_mce
>> 2) Write a post processing plugin, which converts the result from
>> tiny_mce into xwiki markup
>> 3) change wysiwyg.vm to use directly tiny_mce
>> 4) kick wiki_editor
>>
>> This allows us to easier update tiny_mce and it is much simpler to
>> understand whats going on. An other plus is that there is not an other
>> layer in between, which could break everything.
>>
>> Please tell me what you think about my idea. ATM i am working on the
>> marco plugin.
>>
>> chhers,
>> Christian
>>
>> 2007/2/23, Phung Nam <phunghainam at xwiki.com>:
>> > Hi Christian !
>> >
>> > To update tiny_mce to most recent version is not easy ! because we 
>> have some
>> > modifications in tiny_mce.js (so if you update to most recent 
>> version then
>> > you  also must modify somethings in new tiny_mce.js if Tiny MCE 
>> don't have
>> > very much modifications in API)
>> >
>> > To update to tiny_mce with new version you can following the steps:
>> >
>> > - Copy the  Tiny_MCE  with most recent version to replace for tiny_mce
>> > directory
>> > - We configured for tiny_mce in wiki_editor.js
>> > - We use many function of Tiny_MCE in core.js , so we must modify 
>> somethings
>> > if Tiny_MCE have very much modifications in API
>> >
>> > If you have some questions about this you can email for me .
>> >
>> > Thanks and best regards !
>> > -Phung Nam
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > On 2/22/07, Christian Gmeiner < christian.gmeiner at gmail.com> wrote:
>> > >
>> > > Hi all.
>> > >
>> > > At the moment I am looking into problems exists with xwikis wysiwyg
>> > > editor. For instance, it is not possible to save the result of image
>> > > operations in the wiki page.
>> > >
>> > > I have created an jira -
>> > http://jira.xwiki.org/jira/browse/XWIKI-906 -
>> > > to update tiny_mce to most recent version. But know I need more
>> > > informations, where, how, ... tiny_mce is integrated in xwiki. Where
>> > > can i find the setup of tiny_mce...
>> > >
>> > > I hope somebody can help me,
>> > > Christian
>> > >
>> > >
>> > >
>> > > --
>> > > You receive this message as a subscriber of the 
>> xwiki-dev at objectweb.org
>> > mailing list.
>> > > To unsubscribe: mailto:
>> > xwiki-dev-unsubscribe at objectweb.org
>> > > For general help: mailto: sympa at objectweb.org?subject=help
>> > > ObjectWeb mailing lists service home page: 
>> http://www.objectweb.org/wws
>> > >
>> > >
>> >
>> >
>> >
>> > --
>> > You receive this message as a subscriber of the 
>> xwiki-dev at objectweb.org
>> > mailing list.
>> > To unsubscribe: mailto:xwiki-dev-unsubscribe at objectweb.org
>> > For general help: mailto:sympa at objectweb.org?subject=help
>> > ObjectWeb mailing lists service home page: 
>> http://www.objectweb.org/wws
>> >
>> >
>>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the xwiki-dev at objectweb.org mailing list.
> To unsubscribe: mailto:xwiki-dev-unsubscribe at objectweb.org
> For general help: mailto:sympa at objectweb.org?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>   


-- 
Ludovic Dubost
Blog: http://www.ludovic.org/blog/
XWiki: http://www.xwiki.com
Skype: ldubost GTalk: ldubost 
AIM: nvludo Yahoo: ludovic





More information about the devs mailing list