[xwiki-users] Macro Restricted Mode

2016-04-28 Thread Wei He
This article mentions that Macro Transformation Context can be set in "Restricted Mode" and TransformationContext class constructor takes this parameter. But I can't find where this value is originally set. Does it come from configuration? I want to change this value for the html macro. http://re

[xwiki-users] Document save hook to modify content

2016-05-10 Thread Wei He
Hi, I want to modify document content while user is saving a document, for example: [[PageA]] will be replaced by [[PageA.WebHome]]. I want to write a component extension to do that. Which component should I look into? Thanks, Wei -- View this message in context: http://xwiki.475771.n2.nabble

[xwiki-users] How to disable marco editor in CKEditor 1.7

2016-06-16 Thread Wei He
I am looking for advice on how to disable macro editor in CKEditor. We want to upgrade to 1.7 to fix bugs, but not ready to let users explore all macros. It would be nice if we can modify the script in CKEditor.EditSheet to disable it or hide the available macro list. -- View this message in c

Re: [xwiki-users] How to disable marco editor in CKEditor 1.7

2016-06-22 Thread Wei He
Hi Marius, Thanks for getting back to me. This change will hide the macro button on toolbar but user can still popup the macro editor by double clicking any existing macro in CKEditor. What's the best way to also disable the popup? Thanks, Wei -- View this message in context: http://xwiki.4757

Re: [xwiki-users] How to disable marco editor in CKEditor 1.7

2016-06-24 Thread Wei He
Hi Vincent, Thanks for explaining how macro permission works. We are disabling certain macros permanently. We only need to hide some of them from the macro selector in CKEditor, for example, the groovy macro. Is there a best way to do that? Thanks, Wei -- View this message in context: http://x