mirror of
https://github.com/cosmocode/dokuwiki-plugin-prosemirror.git
synced 2025-08-15 23:39:12 +00:00
refactor: clean up plugin rendering method
This commit is contained in:
@ -437,14 +437,10 @@ class renderer_plugin_prosemirror extends Doku_Renderer {
|
||||
|
||||
function plugin($name, $data, $state = '', $match = '') {
|
||||
$node = new Node('dwplugin');
|
||||
$node->attr('class', 'dwplugin');
|
||||
$this->nodestack->addTop($node);
|
||||
|
||||
$content = new Node('text');
|
||||
$content->setText($match);
|
||||
$this->nodestack->add($content);
|
||||
|
||||
$this->cdata($match);
|
||||
$this->nodestack->drop('dwplugin');
|
||||
|
||||
}
|
||||
|
||||
#region elements with no special WYSIWYG representation
|
||||
|
Reference in New Issue
Block a user