editor: minor refactor

This commit is contained in:
Abdullah Atta
2024-03-11 11:10:41 +05:00
parent ce8cba4f13
commit a0f14dc3ef

View File

@@ -112,12 +112,6 @@ declare global {
var keyboardShown: boolean;
}
function hasStyle(element: HTMLElement | string) {
const style = (element as HTMLElement).getAttribute("style");
if (!style || style === "font-family: inherit;") return false;
return true;
}
globalThis["keyboardShown"] = true;
const CoreExtensions = Object.entries(TiptapCoreExtensions)
// we will implement our own customized clipboard serializer
@@ -407,3 +401,9 @@ export {
getHTMLFromFragment,
type DownloadOptions
};
function hasStyle(element: HTMLElement | string) {
const style = (element as HTMLElement).getAttribute("style");
if (!style || style === "font-family: inherit;") return false;
return true;
}