Search code examples
xforms

Adding an hyperlink button to the XForms textarea control


I am new to Xform. I want to use rich text editor in my page. So I used the attribute mediatype="text/html" on my <xforms:textarea>. Now the rich text editor appeared for my page. But it doesn't have all the controls; e.g. it doesn't have an hyperlink button. What should I do for this?


Solution

  • You can do so by overriding tinymce-config.js and add the link buttons, at the end of theme_advanced_buttons1. When done, this is how the button will look like. And for more settings, see the advlink plugin.

    Link button