[xwiki-users] Additional macros in WYSIWYG?
Hi all, how can I implement additional macros (such as #footnote, #error and #useravatar) in the WYSIWYG editor? Thanks, Alla -- View this message in context: http://n2.nabble.com/Additional-macros-in-WYSIWYG--tp841125p841125.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, On Sep 5, 2008, at 3:04 PM, adoro wrote:
Hi all,
how can I implement additional macros (such as #footnote, #error and #useravatar) in the WYSIWYG editor?
I think you just need to edit the file called macros.txt and located in your WEB-INF/skins/albatross directory (or the one in WEB-INF/ templates) and add your macros there. Please note that this is going to change and hugely improved with the new WYSIWYG editor: http://dev.xwiki.org/xwiki/bin/view/Design/NewWysiwygEditorInterface Thanks -Vincent
Hi Vincent, vmassol wrote:
I think you just need to edit the file called macros.txt and located in your WEB-INF/skins/albatross directory (or the one in WEB-INF/ templates) and add your macros there.
thanks a lot for your reply, but in this way it doesn't work - I tried it already. Input in macros.txt warning=velocity:warning:text generates {warning:text=Test warning} instead of #warning("Test warning") I tried also warning=wiki:warning:text #footnote seems to be a Radeox macro, messages (#info, #warning, #message) and #useravatars - either velocity or wiki macros (I don't know exactly the difference between them both). There is not example in macros.txt for radeox macros - they have another syntax. There is a comment for footnote in macros.vm as "TODO" - "Make Radeox macros Support in wysiwyg"
Please note that this is going to change and hugely improved with the new WYSIWYG editor: http://dev.xwiki.org/xwiki/bin/view/Design/NewWysiwygEditorInterface
Sure, I would like to test the new WYSIWYG - can I implement it separately in our actual XE 1.5, or I need to upgrade the whole system? Regards, Alla -- View this message in context: http://n2.nabble.com/Additional-macros-in-WYSIWYG--tp841125p841313.html Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (2)
-
adoro -
Vincent Massol