[FIX] website, *: restore using widgets outside the editor
* web_editor Following the new editor's merge at https://github.com/odoo/odoo/pull/29775, the editor dialog and the switches crashed on their use in website. This is because the merge split some xml files without adapting xml dependencies... this commit only takes care of code which depended on '/web_editor/static/src/xml/editor.xml'. closes odoo/odoo#30408
This commit is contained in:
@@ -12,7 +12,7 @@ var _t = core._t;
|
||||
var AltDialog = Dialog.extend({
|
||||
template: 'wysiwyg.widgets.alt',
|
||||
xmlDependencies: Dialog.prototype.xmlDependencies.concat(
|
||||
['/web_editor/static/src/xml/editor.xml']
|
||||
['/web_editor/static/src/xml/wysiwyg.xml']
|
||||
),
|
||||
|
||||
/**
|
||||
|
||||
@@ -12,7 +12,7 @@ var _t = core._t;
|
||||
var CropImageDialog = Dialog.extend({
|
||||
template: 'wysiwyg.widgets.crop_image',
|
||||
xmlDependencies: Dialog.prototype.xmlDependencies.concat(
|
||||
['/web_editor/static/src/xml/editor.xml']
|
||||
['/web_editor/static/src/xml/wysiwyg.xml']
|
||||
),
|
||||
jsLibs: [
|
||||
'/web_editor/static/lib/cropper/js/cropper.js',
|
||||
|
||||
@@ -12,7 +12,7 @@ var QWeb = core.qweb;
|
||||
var _t = core._t;
|
||||
|
||||
var MediaWidget = Widget.extend({
|
||||
xmlDependencies: ['/web_editor/static/src/xml/editor.xml'],
|
||||
xmlDependencies: ['/web_editor/static/src/xml/wysiwyg.xml'],
|
||||
events: {
|
||||
'input input.o_we_search': '_onSearchInput',
|
||||
},
|
||||
|
||||
@@ -15,7 +15,7 @@ var _t = core._t;
|
||||
var MediaDialog = Dialog.extend({
|
||||
template: 'wysiwyg.widgets.media',
|
||||
xmlDependencies: Dialog.prototype.xmlDependencies.concat(
|
||||
['/web_editor/static/src/xml/editor.xml']
|
||||
['/web_editor/static/src/xml/wysiwyg.xml']
|
||||
),
|
||||
events: _.extend({}, Dialog.prototype.events, {
|
||||
'click a[data-toggle="tab"]': '_onTabChange',
|
||||
|
||||
@@ -9,7 +9,7 @@ var WebsiteAceEditor = require('website.ace');
|
||||
var qweb = core.qweb;
|
||||
|
||||
var CustomizeMenu = Widget.extend({
|
||||
xmlDependencies: ['/web_editor/static/src/xml/editor.xml'],
|
||||
xmlDependencies: ['/website/static/src/xml/website.editor.xml'],
|
||||
events: {
|
||||
'show.bs.dropdown': '_onDropdownShow',
|
||||
'click .dropdown-item[data-view-id]': '_onCustomizeOptionClick',
|
||||
|
||||
@@ -12,7 +12,7 @@ var _t = core._t;
|
||||
var enableFlag = 'enable_new_content';
|
||||
|
||||
var NewContentMenu = websiteNavbarData.WebsiteNavbarActionWidget.extend({
|
||||
xmlDependencies: ['/web_editor/static/src/xml/editor.xml'],
|
||||
xmlDependencies: ['/website/static/src/xml/website.editor.xml'],
|
||||
actions: _.extend({}, websiteNavbarData.WebsiteNavbarActionWidget.prototype.actions || {}, {
|
||||
close_all_widgets: '_handleCloseDemand',
|
||||
new_page: '_createNewPage',
|
||||
|
||||
Reference in New Issue
Block a user