Hi Wei,
Actually the macro editing feature is not an optional feature and it’s not been made to be
disabled (in the WYSIWYG editor or anywhere else FTM).
Being able to edit macros is a major feature and the user will also always be able to go
in wiki edit mode and edit the macro so the only way you have to prevent users from
modifying macros is with permissions. More generally speaking we consider macro like
content and it’s thus subject to the same permissions as content editing.
To achieve what you want, you’d need to contribute a new permission (permission to edit a
macro) and modify various parts of XWiki to check for that permission (for example having
a listener on page save and verify that no macro has been modified, etc). It would be
quite complex to implement and not natural IMO.
Thanks
-Vincent
On 22 Jun 2016, at 19:33, Wei He
<weihe123(a)gmail.com> wrote:
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