@@ -125,7 +125,7 @@ |
||
| 125 | 125 | if ($inner[0] === '#') { |
| 126 | 126 | return dokuwiki\plugin\prosemirror\parser\LocalLinkNode::resolveLocalLink($inner, $curId); |
| 127 | 127 | } |
| 128 | - return \dokuwiki\plugin\prosemirror\parser\InternalLinkNode::resolveLink($inner, $curId); |
|
| 128 | + return \dokuwiki\plugin\prosemirror\parser\InternalLinkNode::resolveLink($inner, $curId); |
|
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | /** |
@@ -349,17 +349,17 @@ discard block |
||
| 349 | 349 | $node = new Node('rss'); |
| 350 | 350 | $node->attr('url', hsc($url)); |
| 351 | 351 | $node->attr('max', $params['max']); |
| 352 | - $node->attr('reverse', (bool)$params['reverse']); |
|
| 353 | - $node->attr('author', (bool)$params['author']); |
|
| 354 | - $node->attr('date', (bool)$params['date']); |
|
| 355 | - $node->attr('details', (bool)$params['details']); |
|
| 352 | + $node->attr('reverse', (bool) $params['reverse']); |
|
| 353 | + $node->attr('author', (bool) $params['author']); |
|
| 354 | + $node->attr('date', (bool) $params['date']); |
|
| 355 | + $node->attr('details', (bool) $params['details']); |
|
| 356 | 356 | |
| 357 | 357 | if ($params['refresh'] % 86400 === 0) { |
| 358 | - $refresh = $params['refresh']/86400 . 'd'; |
|
| 358 | + $refresh = $params['refresh'] / 86400 . 'd'; |
|
| 359 | 359 | } else if ($params['refresh'] % 3600 === 0) { |
| 360 | - $refresh = $params['refresh']/3600 . 'h'; |
|
| 360 | + $refresh = $params['refresh'] / 3600 . 'h'; |
|
| 361 | 361 | } else { |
| 362 | - $refresh = $params['refresh']/60 . 'm'; |
|
| 362 | + $refresh = $params['refresh'] / 60 . 'm'; |
|
| 363 | 363 | } |
| 364 | 364 | |
| 365 | 365 | $node->attr('refresh', trim($refresh)); |
@@ -504,7 +504,7 @@ discard block |
||
| 504 | 504 | |
| 505 | 505 | function smiley($smiley) |
| 506 | 506 | { |
| 507 | - if(array_key_exists($smiley, $this->smileys)) { |
|
| 507 | + if (array_key_exists($smiley, $this->smileys)) { |
|
| 508 | 508 | $node = new Node('smiley'); |
| 509 | 509 | $node->attr('icon', $this->smileys[$smiley]); |
| 510 | 510 | $node->attr('syntax', $smiley); |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** @var Doku_Form $form */ |
| 47 | - $form =& $event->data; |
|
| 47 | + $form = & $event->data; |
|
| 48 | 48 | $useWYSIWYG = get_doku_pref('plugin_prosemirror_useWYSIWYG', false); |
| 49 | 49 | |
| 50 | 50 | $prosemirrorJSON = ''; |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $form->addElement(form_makeButton('button', '', $this->getLang('switch_editors'), $attr)); |
| 74 | 74 | |
| 75 | 75 | // output data and editor field |
| 76 | - $form->addHidden('prosemirror_json',$prosemirrorJSON); |
|
| 76 | + $form->addHidden('prosemirror_json', $prosemirrorJSON); |
|
| 77 | 77 | $form->insertElement(1, '<div class="prosemirror_wrapper" id="prosemirror__editor"></div>'); |
| 78 | 78 | } |
| 79 | 79 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | 'id' => 'prosemirror-linkform', |
| 106 | 106 | 'style' => 'display: none;', |
| 107 | 107 | ]); |
| 108 | - $linkForm->addFieldsetOpen('Links')->addClass('js-link-fieldset');; |
|
| 108 | + $linkForm->addFieldsetOpen('Links')->addClass('js-link-fieldset'); ; |
|
| 109 | 109 | $iwOptions = array_keys(getInterwiki()); |
| 110 | 110 | $linkForm->addDropdown('iwshortcut', $iwOptions, 'InterWiki')->attr('required', 'required'); |
| 111 | 111 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | // $lang['menu'] = 'Your menu entry'; |
| 10 | 10 | |
| 11 | 11 | // custom language strings for the plugin |
| 12 | - $lang['switch_editors'] = 'Toggle WYSIWYG editor'; |
|
| 13 | - $lang['js']['code_block_hint'] = ' |
|