You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there is an error said globalthis.grep is not a function.looking the js file in browser,i find that in the plugin,js of codesample,a sentence var global = tinymce.util.Tools.resolve('tinymce.util.Tools'); and then it was user with
global.each(global.grep(pres, isCodeSample), elm => {
const code = elm.textContent;
dom.setAttrib(elm, 'class', trim(dom.getAttrib(elm, 'class')));
dom.setAttrib(elm, 'contentEditable', null);
dom.setAttrib(elm, 'data-mce-highlighted', null);
let child;
while (child = elm.firstChild) {
elm.removeChild(child);
}
const codeElm = dom.add(elm, 'code');
codeElm.textContent = code;
});
here ,the global was replaced by globalthis in browser,maybe when build or prebuild,something happen and regard global as a keyword and replace it to suit the nodejs and browser.
how can i do to prevent the replace
The text was updated successfully, but these errors were encountered:
there is an error said globalthis.grep is not a function.looking the js file in browser,i find that in the plugin,js of codesample,a sentence var global = tinymce.util.Tools.resolve('tinymce.util.Tools'); and then it was user with
global.each(global.grep(pres, isCodeSample), elm => {
const code = elm.textContent;
dom.setAttrib(elm, 'class', trim(dom.getAttrib(elm, 'class')));
dom.setAttrib(elm, 'contentEditable', null);
dom.setAttrib(elm, 'data-mce-highlighted', null);
let child;
while (child = elm.firstChild) {
elm.removeChild(child);
}
const codeElm = dom.add(elm, 'code');
codeElm.textContent = code;
});
here ,the global was replaced by globalthis in browser,maybe when build or prebuild,something happen and regard global as a keyword and replace it to suit the nodejs and browser.
how can i do to prevent the replace
The text was updated successfully, but these errors were encountered: