|
1 | | -const fetchApi = import( |
2 | | - "https://unpkg.com/@microsoft/[email protected]/lib/esm/index.js" |
3 | | -).then((module) => module.fetchEventSource); |
| 1 | +const fetchApi = import('https://cdn.skypack.dev/@microsoft/[email protected]') |
| 2 | + .then((module) => module.fetchEventSource); |
| 3 | + |
| 4 | + |
4 | 5 |
|
5 | 6 | /* Script to import faker.js for generating random data for demonstration purposes */ |
6 | 7 | tinymce.ScriptLoader.loadScripts(['https://cdn.jsdelivr.net/npm/faker@5/dist/faker.min.js']).then(() => { |
@@ -141,7 +142,6 @@ tinymce.ScriptLoader.loadScripts(['https://cdn.jsdelivr.net/npm/faker@5/dist/fak |
141 | 142 | }); |
142 | 143 | }; |
143 | 144 |
|
144 | | - const useDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches; |
145 | 145 | const isSmallScreen = window.matchMedia('(max-width: 1023.5px)').matches; |
146 | 146 |
|
147 | 147 | const ai_request = (request, respondWith) => { |
@@ -523,8 +523,6 @@ tinymce.ScriptLoader.loadScripts(['https://cdn.jsdelivr.net/npm/faker@5/dist/fak |
523 | 523 | 'body { font-family:Helvetica,Arial,sans-serif; font-size:16px }', |
524 | 524 | contextmenu: 'link image editimage table spellchecker configurepermanentpen', |
525 | 525 | a11y_advanced_options: true, |
526 | | - skin: useDarkMode ? 'oxide-dark' : 'oxide', |
527 | | - content_css: useDarkMode ? 'dark' : 'default', |
528 | 526 | mentions_selector: '.mymention', |
529 | 527 | mentions_fetch: mentions_fetch, |
530 | 528 | mentions_menu_hover: mentions_menu_hover, |
|
0 commit comments