Skip to content

Commit

Permalink
Fix bad merged
Browse files Browse the repository at this point in the history
  • Loading branch information
kgonella committed May 10, 2024
1 parent 8ac475c commit 9eba035
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ setup_application:
${APP_DIR}/docker-compose.yaml:
rm -f ${APP_DIR}/docker-compose.yml
rm -f ${APP_DIR}/docker-compose.yaml
rm -f ${APP_DIR}/compose.yml
rm -f ${APP_DIR}/compose.override.dist.yml
ln -s ../../docker-compose.yaml.dist ${APP_DIR}/docker-compose.yaml
.PHONY: ${APP_DIR}/docker-compose.yaml

Expand Down
16 changes: 8 additions & 8 deletions assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const initEditors = (target) => {

// For retro-compatibility we keep the MonsieurBizRichEditorWysiwyg class
global.MonsieurBizRichEditorWysiwyg = class {
constructor(config) { }
constructor(config) {}
load(container) {
console.log('Deprecated method MonsieurBizRichEditorWysiwyg.load(), use initEditors(target) instead.');
}
Expand Down Expand Up @@ -221,7 +221,7 @@ global.MonsieurBizRichEditorManager = class {
this.initUiToolsInterface();

document.dispatchEvent(new CustomEvent('mbiz:rich-editor:init-interface-complete', {
'detail': { 'editorManager': this }
'detail': {'editorManager': this}
}));
document.addEventListener('mbiz:rich-editor:uielement:copied', function (e) {
this.container.querySelectorAll('.js-uie-paste').forEach(function (action) {
Expand Down Expand Up @@ -304,7 +304,7 @@ global.MonsieurBizRichEditorManager = class {

getActions(position) {
let actionsWrapper = document.createElement('div');
actionsWrapper.innerHTML = Mustache.render(this.config.actionsHtml, { 'position': position });
actionsWrapper.innerHTML = Mustache.render(this.config.actionsHtml, {'position': position});

let actions = actionsWrapper.firstElementChild;

Expand Down Expand Up @@ -476,7 +476,7 @@ global.MonsieurBizRichEditorManager = class {
saveButton.panel = this.newPanel;
saveButton.addEventListener('click', function (e) {
e.currentTarget.panel.dialog.querySelector('form').dispatchEvent(
new Event('submit', { cancelable: true })
new Event('submit', {cancelable: true})
);
});
}
Expand Down Expand Up @@ -544,7 +544,7 @@ global.MonsieurBizRichEditorManager = class {
saveButton.panel = this.editPanel;
saveButton.addEventListener('click', function (e) {
e.currentTarget.panel.dialog.querySelector('form').dispatchEvent(
new Event('submit', { cancelable: true })
new Event('submit', {cancelable: true})
);
});
}
Expand All @@ -563,7 +563,7 @@ global.MonsieurBizRichEditorManager = class {
this.input.value = (this.uiElements.length > 0) ? JSON.stringify(this.uiElements) : '';
this.drawUiElements();
document.dispatchEvent(new CustomEvent('mbiz:rich-editor:write-complete', {
'detail': { 'editorManager': this }
'detail': {'editorManager': this}
}));
}

Expand Down Expand Up @@ -616,7 +616,7 @@ global.MonsieurBizRichEditorManager = class {
req.open("post", url.replace('__CODE__', element.code), true);
req.setRequestHeader("X-Requested-With", "XMLHttpRequest");
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
req.send(new URLSearchParams({ data: JSON.stringify(element.data) }).toString());
req.send(new URLSearchParams({data: JSON.stringify(element.data)}).toString());
}

submitUiElementForm(form, callback) {
Expand Down Expand Up @@ -740,7 +740,7 @@ global.MonsieurBizRichEditorManager = class {

dispatchInitFormEvent(form, manager) {
document.dispatchEvent(new CustomEvent('monsieurBizRichEditorInitForm', {
'detail': { 'form': form, 'manager': manager }
'detail': {'form': form, 'manager': manager}
}));
}
};
1 change: 1 addition & 0 deletions docker-compose.yaml.dist
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: '3.8'
services:
database:
image: mysql:8.0
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/public/js/rich-editor.js

Large diffs are not rendered by default.

0 comments on commit 9eba035

Please sign in to comment.