mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-06 12:02:45 +03:00
Base layout: Changed main app script to be module loaded
Prevents polluting global scope with variables since we're using the module format bundler in esbuild. Also cleaned up unused yields. Fixed bad reference in our tinymce fixes. For #5232
This commit is contained in:
@@ -144,11 +144,13 @@ export function handleTableCellRangeEvents(editor) {
|
||||
cell.removeAttribute('align');
|
||||
cleanChildAlignment(cell);
|
||||
},
|
||||
JustifyRight: this.JustifyLeft,
|
||||
JustifyCenter: this.JustifyLeft,
|
||||
JustifyFull: this.JustifyLeft,
|
||||
};
|
||||
|
||||
// Copy justify left action to other alignment actions
|
||||
actionByCommand.JustifyRight = actionByCommand.JustifyLeft;
|
||||
actionByCommand.JustifyCenter = actionByCommand.JustifyLeft;
|
||||
actionByCommand.JustifyFull = actionByCommand.JustifyLeft;
|
||||
|
||||
editor.on('ExecCommand', event => {
|
||||
const action = actionByCommand[event.command];
|
||||
if (action) {
|
||||
|
Reference in New Issue
Block a user