Skip to content

Commit

Permalink
Update Editor.php
Browse files Browse the repository at this point in the history
  • Loading branch information
live627 authored Dec 9, 2023
1 parent d063abc commit 8883367
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Sources/Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] . '",
Expand Down Expand Up @@ -875,4 +874,4 @@ protected function setSCEditorOptions()
Editor::exportStatic();
}

?>
?>

0 comments on commit 8883367

Please sign in to comment.