first commit without licensingg
This commit is contained in:
19
assets/jsx/editor-scripts.js
Normal file
19
assets/jsx/editor-scripts.js
Normal file
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Enqueue editor scripts.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Add wrapper to widgets editor.
|
||||
*/
|
||||
wp.data.subscribe(function () {
|
||||
setTimeout(function () {
|
||||
var elements = document.querySelectorAll('#widgets-editor .editor-styles-wrapper:not(.cs-editor-styles-wrapper)');
|
||||
if (elements && elements.length) {
|
||||
elements.forEach(function (wrapper) {
|
||||
wrapper.classList.add('cs-editor-styles-wrapper');
|
||||
});
|
||||
}
|
||||
}, 1);
|
||||
});
|
||||
Reference in New Issue
Block a user