Browse Source

Update vue integration docs

pull/2295/head
jscasca 3 years ago
committed by EkimChau
parent
commit
77f1eae243
  1. 4
      modules/ROOT/partials/integrations/vue-tech-ref.adoc

4
modules/ROOT/partials/integrations/vue-tech-ref.adoc

@ -371,7 +371,7 @@ The `+v-model+` directive can be used to create a two-way data binding. For exam
<editor v-model="content" />
----
For information on `+v-model+` and form input bindings, see: https://vuejs.org/v2/guide/forms.html[Vue.js documentation - Form Input Bindings].
For information on `+v-model+` and form input bindings, see: https://vuejs.org/guide/essentials/forms.html[Vue.js documentation - Form Input Bindings].
[[eventbinding]]
== Event binding
@ -383,6 +383,8 @@ Functions can be bound to editor events, such as:
<editor @selectionChange="handlerFunction" />
----
For older versions of Vue (Vue 2) supported by v3.x, the syntax for event bindings are: `<editor v-on:selectionChange="handlerFunction">` or `<editor @onSelectionChange="handlerFunction">`.
When the handler is called (*handlerFunction* in this example), it is called with two arguments:
* `+event+` - The TinyMCE event object.

Loading…
Cancel
Save