Skip to content

Commit 4aee40b

Browse files
committed
Remove dark mode detection and set skin to in demo examples; update release notes formatting issue.
1 parent 1b8c3de commit 4aee40b

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

modules/ROOT/examples/live-demos/full-featured/example.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const fetchApi = import(
66
// Instead, an alternate method for retrieving the API key should be used.
77
const openai_api_key = "<INSERT_OPENAI_API_KEY_HERE>";
88

9-
const useDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;
109
const isSmallScreen = window.matchMedia('(max-width: 1023.5px)').matches;
1110

1211
tinymce.init({
@@ -111,8 +110,7 @@ tinymce.init({
111110
content_style: '.mymention{ color: gray; }',
112111
contextmenu: 'link image editimage table configurepermanentpen',
113112
a11y_advanced_options: true,
114-
skin: useDarkMode ? 'oxide-dark' : 'oxide',
115-
content_css: useDarkMode ? 'dark' : 'default',
113+
skin: 'oxide-dark',
116114
autocorrect_capitalize: true,
117115
mergetags_list: [
118116
{

modules/ROOT/examples/live-demos/full-featured/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ tinymce.ScriptLoader.loadScripts(['https://cdn.jsdelivr.net/npm/faker@5/dist/fak
141141
});
142142
};
143143

144-
const useDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;
145144
const isSmallScreen = window.matchMedia('(max-width: 1023.5px)').matches;
146145

147146
const ai_request = (request, respondWith) => {
@@ -523,8 +522,7 @@ tinymce.ScriptLoader.loadScripts(['https://cdn.jsdelivr.net/npm/faker@5/dist/fak
523522
'body { font-family:Helvetica,Arial,sans-serif; font-size:16px }',
524523
contextmenu: 'link image editimage table spellchecker configurepermanentpen',
525524
a11y_advanced_options: true,
526-
skin: useDarkMode ? 'oxide-dark' : 'oxide',
527-
content_css: useDarkMode ? 'dark' : 'default',
525+
skin: 'oxide-dark',
528526
mentions_selector: '.mymention',
529527
mentions_fetch: mentions_fetch,
530528
mentions_menu_hover: mentions_menu_hover,

modules/ROOT/pages/7.7.0-release-notes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ For information on the **Accessibility Checker** plugin, see: xref:a11ychecker.a
242242

243243
{productname} {release-version} also includes the following improvements:
244244

245-
==== Improved visual indication of keyboard focus for a comment annotation when there is an image inside.
245+
=== Improved visual indication of keyboard focus for a comment annotation when there is an image inside.
246246
// #TINY-11596
247247

248248
In previous versions of **Comments**, annotated non-text elements occasionally displayed a double bottom border when selected, leading to a visual inconsistency that appeared buggy and clashed with existing border styles.

0 commit comments

Comments
 (0)