Hi,
Vincent Massol wrote:
  Hi,
 We need to have automatic inline edit mode for XWiki Syntax 2.0
 (
http://jira.xwiki.org/jira/browse/XWIKI-2891)
 I'd like to implement this quickly since it prevents to use the xwiki
 syntax 2.0 as the default syntax (for ex if you create a user in 2.0
 syntax and click edit you'll edit it in wysiwyg mode instead of inline
 mode).
 A quick solution I have:
 * Use the XWikiDocument template field to set the sheet to use 
Don't you rather mean the field "defaultEditSheet" ? template is for
choosing the .vm to render the document against IIRC
  * When a page has the template field set, when the
user clicks on the
 edit button it goes automatically in inline edit mode 
The template field set to what ? This sounds like a hack and will
prevent using the template field for what its meant for.
  * Add a new field in the information edit panel to set
the template
 (only for advanced users I think)
 WDYT? 
I think we'd better not make a too quick decision on that, since if we
don't make a sound choice, it potentially will create us more work for
the moment we really refactor/remove the inline mode.
I would say "defaultEditSheet" is our best option, but I have to think
more about it. Feedback from JV and Ludovic would help, they both worked
on such refactoring of the inline mode.
Jerome.
 Thanks
 -Vincent
 _______________________________________________
 devs mailing list
 devs(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/devs