On 1/30/10 11:20 AM, Vincent Massol wrote: > Hi Farouk, > > On Jan 30, 2010, at 10:45 AM, Marius Dumitru Florea wrote: > >> farouk korteby wrote: >>> Hi, >>> >>> I want to disable some developpement macros in GWT based wysiwyg, how can i >>> do it ? >> >> AFAIK there's no way to disable a macro only in WYSIWYG mode. The >> WYSIWYG editor takes the list of macros from the rendering module, and >> you can't configure a macro to be enabled just for a specific edit mode. >> You either have it for all edit modes or for none. Macros are components >> and are automatically discovered. If you look in the WEB-INF/lib >> directory you'll see many xwiki-core-rendering-macro-xxx jars. Try >> removing some of them, but note that some macros like HTML and Velocity >> (I think) are used internally and are required for the wiki pages to be >> properly displayed (see http://jira.xwiki.org/jira/browse/XWIKI-3953 ). > > Marius explained the current status but I would like to know more about the > reason you wish to disable some macros in the WYSIWYG editor. In addition > would you also like to disable them in wiki edition mode too? > > If you have a generic and valid use case then we could imagine making this > configurable in XE.
In my opinion the use case can be discussed : "technical" macros developed within an XWiki application as a convenience macro that user are not supposed to understand / use. One could object that a well-designed application would internally only use macros that may be useful to users as well Personally I would not bet on the fact this assertion always works and I would tend to say sometimes as a developer you have the need for your own, not exposed, macros. I have never had this need so far, but I have not developed full or complex applications in xwiki/2.0 syntax yet. Another point Thomas M. made is that we suppord "hidden paramaters" (as in not declared thus not exposed in the WYSIWYG) ; so why not support "hidden macros". My 2 cents, Jerome. > > Thanks > -Vincent > > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

