refactor: clean up plugin rendering method

This commit is contained in:
Michael Große
2018-01-29 16:52:33 +01:00
parent 674625115d
commit 6212b34044

View File

@ -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