dokuwiki-plugin-codemirror icon indicating copy to clipboard operation
dokuwiki-plugin-codemirror copied to clipboard

integration with other plugins

Open chchch opened this issue 8 years ago • 1 comments

Hi,

Would it be possible to use a named function instead of an anonymous function as a plugin wrapper, so that it can be called by other plugins?

chchch avatar Aug 31 '16 14:08 chchch

Yes, it's possible but I don't think this would be enough. You would need at least these functions:

  • Open the editor
  • Save content to textarea
  • Close the editor

The plugin assumes the textarea has id "wiki__text", and the settings button is added to the div with id "size__ctl". It would be useful to add parameters for these, and to allow multiple instances of the editor.

albertgasset avatar Sep 10 '16 14:09 albertgasset