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

Add support for replacing the default WYSIWYG editor

Details

    • Medium

    Description

      The idea is to allow XWiki extensions to provide other WYSIWYG editors and to have the option to select the default WYSIWYG editor from the administration.

      Attachments

        Issue Links

          Activity

            [XWIKI-13528] Add support for replacing the default WYSIWYG editor
            mflorea Marius Dumitru Florea added a comment - - edited

            Stuff that remains to be implemented later:

            • Modify XWikiScriptContextInitializer to check if the current document (reference) has changed on the XWiki context before updating the $doc bindings and then revert or update the changes from https://github.com/xwiki/xwiki-platform/commit/1b92e050f06542ccfa7ce09f125a86102ac28fe5
            • extend the TemplateManager to support look up for templates from class path (i.e. implement ClassPathTemplateContent and modify InternalTemplateManager to use it). For the moment the editor templates are located only in the XWiki WAR, in templates/editors.
            • Implement a generic way to preserve the changes when switching editors (e.g. from Wiki to WYSIWYG). Currently edit.vm has some in-line JavaScript code for this but it does an IF on the editor
            • Fix the wiki editor toolbar to be able to use it for TextArea properties
            mflorea Marius Dumitru Florea added a comment - - edited Stuff that remains to be implemented later: Modify XWikiScriptContextInitializer to check if the current document (reference) has changed on the XWiki context before updating the $doc bindings and then revert or update the changes from https://github.com/xwiki/xwiki-platform/commit/1b92e050f06542ccfa7ce09f125a86102ac28fe5 extend the TemplateManager to support look up for templates from class path (i.e. implement ClassPathTemplateContent and modify InternalTemplateManager to use it). For the moment the editor templates are located only in the XWiki WAR, in templates/editors . Implement a generic way to preserve the changes when switching editors (e.g. from Wiki to WYSIWYG). Currently edit.vm has some in-line JavaScript code for this but it does an IF on the editor Fix the wiki editor toolbar to be able to use it for TextArea properties
            mflorea Marius Dumitru Florea added a comment - Started branch https://github.com/xwiki/xwiki-platform/tree/feature-editors . Needs review.

            People

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

              Dates

                Created:
                Updated:
                Resolved: