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

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.3, 2.1 M1
    • Component/s: WYSIWYG Editor
    • Labels:
      None
    • Tests:
      Integration
    • Difficulty:
      Easy
    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved: