plugin:prosemirror:plugin_support
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
plugin:prosemirror:plugin_support [2018-07-23 15:28] – created grosse | plugin:prosemirror:plugin_support [2018-07-23 15:52] (current) – [The parser] grosse | ||
---|---|---|---|
Line 36: | Line 36: | ||
We tried to keep these groups to DokuWiki' | We tried to keep these groups to DokuWiki' | ||
However, since Prosemirror enforces a strict separation of inline and block content, these groups are not identical to the parser modes. | However, since Prosemirror enforces a strict separation of inline and block content, these groups are not identical to the parser modes. | ||
+ | |||
+ | To add your own content to the schema, add a callback to '' | ||
+ | '' | ||
+ | Please note that '' | ||
+ | |||
+ | |||
+ | ===== The renderer ===== | ||
+ | |||
+ | The renderer renders DokuWiki' | ||
+ | Your integration needs to handle the '' | ||
+ | This event is triggered for the plugin instructions in the [[https:// | ||
+ | <code php> | ||
+ | $eventData = [ | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ]; | ||
+ | </ | ||
+ | |||
+ | For your plugin, you need to prevent the default action and add your Node to the renderer. | ||
+ | See the other modes for the available functions. | ||
+ | |||
+ | ===== The parser ===== | ||
+ | |||
+ | The parser is used to translate the JSON from Prosemirror back to DokuWiki' | ||
+ | To parse you own node, you need to listen to the '' | ||
+ | This event is triggered in the abstract [[https:// | ||
+ | |||
+ | <code php> | ||
+ | $eventData = [ | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ]; | ||
+ | </ | ||
+ | |||
+ | You need to prevent the default and return your instance of '' |
plugin/prosemirror/plugin_support.1532352486.txt.gz · Last modified: 2018-07-23 15:28 by grosse