outcomment sanitizeTinyMce
This commit is contained in:
@@ -44,6 +44,8 @@ export const uriAttributeSanitizer = (editor: Editor) => {
|
||||
};
|
||||
})();
|
||||
|
||||
// TODO: sanitizeTinyMce is not defined in the global scope, so this will not work. Instead we need to get this setting from somewhere else:
|
||||
/*
|
||||
if (window.Umbraco?.Sys.ServerVariables.umbracoSettings.sanitizeTinyMce) {
|
||||
uriAttributesToSanitize.forEach((attribute) => {
|
||||
editor.serializer.addAttributeFilter(attribute, (nodes: AstNode[]) => {
|
||||
@@ -57,4 +59,5 @@ export const uriAttributeSanitizer = (editor: Editor) => {
|
||||
});
|
||||
});
|
||||
}
|
||||
*/
|
||||
};
|
||||
|
||||
@@ -11,9 +11,3 @@ export * from './string/generate-umbraco-alias.function.js';
|
||||
export * from './string/increment-string.function.js';
|
||||
export * from './string/split-string-to-array.js';
|
||||
export * from './type/diff.type.js';
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
Umbraco: any;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user