feat(creator-studio): switch writing editor to TinyMCE

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kate522andClaude Opus 5 committed 2026-11-06 20:51:18 +08:00
1 parent 4868de2cda
commit 384d2b7aa0
25 files changed
+1255 -7076

No files matched your search

+6 -3
View File
@@ -75,9 +75,12 @@ if (!EDGE) {
const state = await page.evaluate(() => ({
hasBar: !!document.querySelector('.jio-creator__bar'),
hasCanvas: !!document.querySelector('.jio-creator__canvas'),
appender: !!document.querySelector('.block-editor-default-block-appender'),
blocks: document.querySelectorAll('.block-editor-block-list__block').length,
hasToolbar: !!document.querySelector('.jio-creator__toolbar-tools'),
hasTinyMce: !!window.tinymce?.get('jio-creator-content'),
hasEditorFrame: !!document.querySelector('.mce-tinymce iframe, .tox-tinymce iframe'),
hasTitle: !!document.querySelector('.jio-creator__title textarea'),
hasSaveDraft: !!document.querySelector('.jio-creator__save-draft'),
toolbarActions: Array.from(document.querySelectorAll('.jio-creator__toolbar-tools button')).map((button) => button.getAttribute('aria-label') || button.textContent.trim()),
saveText: (document.querySelector('.jio-creator__save') || {}).textContent,
rejections: window.__jioRejections || [],
}));