codevdesign 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -262,7 +262,16 @@
|
|
|
262
262
|
if (!this.desactiver) this.$emit('blur')
|
|
263
263
|
},
|
|
264
264
|
onUserActivity() {},
|
|
265
|
+
insererAuCurseur(texte) {
|
|
266
|
+
const ed = this._editor
|
|
267
|
+
if (!ed) return
|
|
268
|
+
|
|
269
|
+
// Focus sur l'éditeur pour que TinyMCE sache où insérer
|
|
270
|
+
ed.focus()
|
|
265
271
|
|
|
272
|
+
// Insert au curseur (respecte le contexte HTML)
|
|
273
|
+
ed.insertContent(texte)
|
|
274
|
+
},
|
|
266
275
|
_normalizeToolbar(tb) {
|
|
267
276
|
const trimmed = (tb || '').trim()
|
|
268
277
|
return trimmed && trimmed !== '|' ? trimmed : 'undo redo'
|