Skip to content

DOC-3392: Add programmatic mode.set example to readonly docs#4056

Open
kemister85 wants to merge 1 commit intofeature/8/DOC-3387from
feature/8/DOC-3387_DOC-3392
Open

DOC-3392: Add programmatic mode.set example to readonly docs#4056
kemister85 wants to merge 1 commit intofeature/8/DOC-3387from
feature/8/DOC-3387_DOC-3392

Conversation

@kemister85
Copy link
Copy Markdown
Contributor

Summary

  • Adds "switching modes programmatically" example to readonly.adoc
  • Shows editor.mode.set('readonly') and editor.mode.set('design')
  • Addresses Context7 benchmark Q7 (score 25/100)

Source validation

  • editor.mode.set(mode: string) confirmed at Mode.ts:93
  • Available modes are 'design' and 'readonly' (confirmed in events.adoc SwitchMode event and Mode.ts)
  • xref to tinymce.editormode.adoc#set matches existing link in the same file (line 4)

Test plan

  • mode.set signature matches source (set: (mode: string) => ...)
  • Mode values 'readonly' and 'design' confirmed in source
  • Example uses tinymce.activeEditor consistent with other examples
  • Antora build passes with no errors

Add example showing editor.mode.set('readonly') and
editor.mode.set('design') for runtime mode switching to address
Context7 benchmark Q7 (25/100).
@kemister85 kemister85 requested review from a team and soritaheng as code owners April 13, 2026 02:20
@kemister85 kemister85 requested review from EkimChau, ShiridiGandham and tiny-james and removed request for a team April 13, 2026 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants