@@ -67,7 +67,9 @@ |
||
67 | 67 | $form = $event->data; |
68 | 68 | |
69 | 69 | // return early if content is not editable |
70 | - if ($this->isReadOnly($form)) return; |
|
70 | + if ($this->isReadOnly($form)) { |
|
71 | + return; |
|
72 | + } |
|
71 | 73 | |
72 | 74 | |
73 | 75 | $useWYSIWYG = get_doku_pref('plugin_prosemirror_useWYSIWYG', false); |
@@ -28,9 +28,13 @@ |
||
28 | 28 | { |
29 | 29 | $doc = ''; |
30 | 30 | foreach ($this->subnodes as $subnode) { |
31 | - if ($subnode instanceof \dokuwiki\plugin\prosemirror\parser\ParagraphNode) $doc .= "\n"; |
|
31 | + if ($subnode instanceof \dokuwiki\plugin\prosemirror\parser\ParagraphNode) { |
|
32 | + $doc .= "\n"; |
|
33 | + } |
|
32 | 34 | $doc .= $subnode->toSyntax(); |
33 | - if ($subnode instanceof \dokuwiki\plugin\prosemirror\parser\ParagraphNode) $doc .= "\n"; |
|
35 | + if ($subnode instanceof \dokuwiki\plugin\prosemirror\parser\ParagraphNode) { |
|
36 | + $doc .= "\n"; |
|
37 | + } |
|
34 | 38 | } |
35 | 39 | return $doc; |
36 | 40 | } |