outcomment sanitizeTinyMce

This commit is contained in:
Niels Lyngsø
2024-02-23 14:07:52 +01:00
parent ce16c42386
commit e168caddeb
2 changed files with 3 additions and 6 deletions

View File

@@ -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) => {
});
});
}
*/
};

View File

@@ -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;
}
}