Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-4519

Add the ability to execute commands on the rich text area from JavaScript

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 2.0.3, 2.1 M1
    • 2.0.2
    • WYSIWYG Editor
    • None
    • Integration
    • Easy

    Description

      Extend the JavaScript API of the editor with a method to access the command manager used by the rich text area. This way we will be able to execute commands on the rich text area from JavaScript code like this:

      if ( editor.getCommandManager().isEnabled('forecolor') ) {
          editor.getCommandManager().execute('forecolor', 'yellow');
          alert( editor.getCommandManager().getValue('forecolor') );
      }
      

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: