Skip to content

TINYDOC-3432 - Document Vue 3 prop-driven content updates in the Vue technical reference#4282

Draft
kemister85 wants to merge 2 commits into
tinymce/8from
hotfix/8/TINYDOC-3432
Draft

TINYDOC-3432 - Document Vue 3 prop-driven content updates in the Vue technical reference#4282
kemister85 wants to merge 2 commits into
tinymce/8from
hotfix/8/TINYDOC-3432

Conversation

@kemister85

@kemister85 kemister85 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Ticket: TINYDOC-3432

Site: https://pr-4282.tinymce-docs.iad.staging.tiny.cloud/docs/tinymce/latest/vue-ref/#updating-the-editor-content-from-a-parent-component

Changes:

Extends the v-model section of the Vue.js technical reference (modules/ROOT/partials/integrations/vue-tech-ref.adoc, included by vue-ref.adoc) to answer a recurring Kapa question: how the @tinymce/tinymce-vue editor updates when a parent component changes the bound content prop after mount.

This brings the Vue reference to parity with the React, Angular, and Svelte references, which already document how each wrapper reacts to parent-driven content updates.

Added a new "Updating the editor content from a parent component" subsection (plus a TOC entry) documenting, verified against @tinymce/tinymce-vue v6.3.1 source:

  • The component watches the v-model/modelValue value and calls editor.setContent() when a parent reassigns it.
  • The guard conditions that prevent a redundant setContent() and cursor reset during the normal edit → update:modelValue round trip (value is a string, differs from the previous value, and differs from the current editor content compared using output-format).
  • A v-model code example showing a parent reassigning the bound value.
  • A single sentence noting that without v-model the watcher is inactive, cross-referencing the existing Event binding section for obtaining the editor instance (rather than duplicating that guidance or promoting a binding bypass).

@kemister85
kemister85 requested review from a team and soritaheng as code owners July 17, 2026 01:02
@kemister85
kemister85 marked this pull request as draft July 17, 2026 01:23
@kemister85

Copy link
Copy Markdown
Contributor Author

@tiny-ben-tran If you can review for next week

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.

1 participant