Hi,

Need 1: Be able to prevent some macros from execution in some  
contexts. For example in the comments field prevent usage of script  
and html macros
Proposed solution: Use a Rendering Transformation with a high priority  
that removes (or that generate an error) those macros (the list of  
macros can be retrieved from a config file or from some execution  
context)

Need 2: Ensure that renderers generate valid content (eg valid XHTML  
for the WYSIWYG editor). For example if the user uses the HTML macro  
and puts invalid HTML the WYSIWYG editor should still work
Proposed solution: Use a Rendering Transformation with a low priority  
that traverses the XDOM to validate it (for example remove inline  
elements that are placed in a standalone context).

WDYT?

Thanks
-Vincent

_______________________________________________
devs mailing list
devs@xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to