Marius Dumitru Florea wrote:
> I'm almost done. I want to commit ASAP (like in half an hour) but there
> are two things that stop me:
> 
> (1) I added a parameter in xwiki.cfg (xwiki.wysiwygnew=[1|0]) for
> enabling/disabling the experimental editor. I need to retrieve its value
> in a template like edit.vm. How should I do it? Options:
> 
> * Add a isWysiwygNewEnabled() method in XWiki. I don't like this solution
> because XWiki is already too crowded.
> * Create a WysiwygPlugin that we can extend later, and which will contain
> for the moment just a isEnabled() method.
> * Something else?

+1 for the plugin. We can move some other methods from XWiki.java there, 
  like: getEditorPreference, getWysiwygToolbars, context.getEditorWysiwyg


> (2) "New WYSIWYG (experimental)" is too long for the EditModes panel (it
> breaks in two lines). Is it ok to leave just "New Wysiwyg"?

New WYSIWYG is OK.
-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to