codevdesign 1.0.13 → 1.0.15

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,23 @@
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()
271
+
272
+ // Insert au curseur (respecte le contexte HTML)
273
+ ed.insertContent(texte)
265
274
 
275
+ // Synchroniser le v-model manuellement au cas où
276
+ try {
277
+ this.editorValue = ed.getContent()
278
+ } catch (e) {
279
+ console.warn('[Editeur] getContent après insererAuCurseur a échoué', e)
280
+ }
281
+ },
266
282
  _normalizeToolbar(tb) {
267
283
  const trimmed = (tb || '').trim()
268
284
  return trimmed && trimmed !== '|' ? trimmed : 'undo redo'
@@ -22,7 +22,7 @@
22
22
  <script setup lang="ts">
23
23
  import { ref, watch, computed } from 'vue'
24
24
  import { useI18n } from 'vue-i18n'
25
- import appAxios from '../../outils/appAxios'
25
+ import appAxios from '../outils/appAxios'
26
26
  import type { EmployeMinsLsCodev } from '../modeles/employeMinsLsCodev'
27
27
 
28
28
  const props = defineProps<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codevdesign",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "Composants Vuetify 3 pour les projets Codev",
5
5
  "files": [
6
6
  "./**/*.vue",