From 888336749af6e58aaf83bdf4245197a9e2503e2e Mon Sep 17 00:00:00 2001 From: John Rayes Date: Fri, 8 Dec 2023 20:54:10 -0700 Subject: [PATCH] Update Editor.php --- Sources/Editor.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Sources/Editor.php b/Sources/Editor.php index c79597ac953..d8d2dfe6ed0 100644 --- a/Sources/Editor.php +++ b/Sources/Editor.php @@ -390,12 +390,11 @@ protected function init(): void Theme::loadCSSFile('jquery.sceditor.theme.css', ['force_current' => true, 'validate' => true], 'smf_jquery_sceditor_theme'); // JS makes the editor go round - Theme::loadJavaScriptFile('editor.js', ['minimize' => true], 'smf_editor'); - Theme::loadJavaScriptFile('jquery.sceditor.bbcode.min.js', [], 'smf_sceditor_bbcode'); - Theme::loadJavaScriptFile('jquery.sceditor.smf.js', ['minimize' => true], 'smf_sceditor_smf'); + Theme::loadJavaScriptFile('jquery.sceditor.bbcode.min.js', ['defer' => true], 'smf_sceditor_bbcode'); + Theme::loadJavaScriptFile('jquery.sceditor.smf.js', ['defer' => true, 'minimize' => true], 'smf_sceditor_smf'); $scExtraLangs = ' - $.sceditor.locale["' . Lang::$txt['lang_dictionary'] . '"] = { + sceditor.locale["' . Lang::$txt['lang_dictionary'] . '"] = { "Width (optional):": "' . Lang::$editortxt['width'] . '", "Height (optional):": "' . Lang::$editortxt['height'] . '", "Insert": "' . Lang::$editortxt['insert'] . '", @@ -875,4 +874,4 @@ protected function setSCEditorOptions() Editor::exportStatic(); } -?> \ No newline at end of file +?>