getTinymce.ts 207 Bytes Edit Raw Blame History 1 2 3 4 5 6 const getGlobal = (): any => (typeof window !== 'undefined' ? window : global); export const getTinymce = () => { const global = getGlobal(); return global && global.tinymce ? global.tinymce : null; };