Skip to content

Commit 8883367

Browse files
authored
Update Editor.php
1 parent d063abc commit 8883367

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Sources/Editor.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -390,12 +390,11 @@ protected function init(): void
390390
Theme::loadCSSFile('jquery.sceditor.theme.css', ['force_current' => true, 'validate' => true], 'smf_jquery_sceditor_theme');
391391

392392
// JS makes the editor go round
393-
Theme::loadJavaScriptFile('editor.js', ['minimize' => true], 'smf_editor');
394-
Theme::loadJavaScriptFile('jquery.sceditor.bbcode.min.js', [], 'smf_sceditor_bbcode');
395-
Theme::loadJavaScriptFile('jquery.sceditor.smf.js', ['minimize' => true], 'smf_sceditor_smf');
393+
Theme::loadJavaScriptFile('jquery.sceditor.bbcode.min.js', ['defer' => true], 'smf_sceditor_bbcode');
394+
Theme::loadJavaScriptFile('jquery.sceditor.smf.js', ['defer' => true, 'minimize' => true], 'smf_sceditor_smf');
396395

397396
$scExtraLangs = '
398-
$.sceditor.locale["' . Lang::$txt['lang_dictionary'] . '"] = {
397+
sceditor.locale["' . Lang::$txt['lang_dictionary'] . '"] = {
399398
"Width (optional):": "' . Lang::$editortxt['width'] . '",
400399
"Height (optional):": "' . Lang::$editortxt['height'] . '",
401400
"Insert": "' . Lang::$editortxt['insert'] . '",
@@ -875,4 +874,4 @@ protected function setSCEditorOptions()
875874
Editor::exportStatic();
876875
}
877876

878-
?>
877+
?>

0 commit comments

Comments
 (0)