@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | |
| 47 | 47 | /** @var Doku_Form $form */ |
| 48 | - $form =& $event->data; |
|
| 48 | + $form = & $event->data; |
|
| 49 | 49 | $useWYSIWYG = get_doku_pref('plugin_prosemirror_useWYSIWYG', false); |
| 50 | 50 | |
| 51 | 51 | if (!$useWYSIWYG) { |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | global $TEXT; |
| 60 | 60 | $instructions = p_get_instructions($TEXT); |
| 61 | 61 | try { |
| 62 | - $prosemirrorJSON = p_render('prosemirror', $instructions, $info); |
|
| 62 | + $prosemirrorJSON = p_render('prosemirror', $instructions, $info); |
|
| 63 | 63 | } catch (Throwable $e) { |
| 64 | 64 | $errorMsg = 'Rendering the page\'s syntax for the WYSIWYG editor failed'; |
| 65 | 65 | |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | |
| 86 | 86 | // output data and editor field |
| 87 | - $form->addHidden('prosemirror_json',$prosemirrorJSON); |
|
| 87 | + $form->addHidden('prosemirror_json', $prosemirrorJSON); |
|
| 88 | 88 | $form->insertElement(1, '<div id="prosemirror__editor"></div>'); |
| 89 | 89 | } |
| 90 | 90 | |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | 'id' => 'prosemirror-linkform', |
| 110 | 110 | 'style' => 'display: none;', |
| 111 | 111 | ]); |
| 112 | - $linkForm->addFieldsetOpen('Links')->addClass('js-link-fieldset');; |
|
| 112 | + $linkForm->addFieldsetOpen('Links')->addClass('js-link-fieldset'); ; |
|
| 113 | 113 | $iwOptions = array_keys(getInterwiki()); |
| 114 | 114 | $linkForm->addDropdown('iwshortcut', $iwOptions, 'InterWiki')->attr('required', 'required'); |
| 115 | 115 | $linkForm->addTextInput('linktarget', 'Link target')->attrs( |