@@ -290,11 +290,11 @@ import richEditor from '../../mixins/richEditor/index.js'
290290import Tooltip from ' ../../directives/Tooltip/index.js'
291291import { emojiSearch , emojiAddRecent } from ' ../../functions/emoji/index.ts'
292292import { searchProvider , getLinkWithPicker } from ' ../NcRichText/index.js'
293+ import { createElementId } from ' ../../utils/createElementId.ts'
293294
294295import Tribute from ' tributejs/dist/tribute.esm.js'
295296import debounce from ' debounce'
296297import stringLength from ' string-length'
297- import { createElementId } from ' ../../utils/createElementId.ts'
298298
299299/**
300300 * Populate the list of text smiles we want to offer via Tribute.
@@ -324,7 +324,7 @@ export default {
324324 */
325325 id: {
326326 type: String ,
327- default : () => createElementId (7 ),
327+ default : () => createElementId (),
328328 },
329329
330330 /**
@@ -425,11 +425,11 @@ export default {
425425 ],
426426
427427 setup () {
428- const uid = createElementId ()
429428 return {
430429 // Constants
431- labelId: ` nc-rich-contenteditable-${ uid} -label` ,
432- tributeId: ` nc-rich-contenteditable-${ uid} -tribute` ,
430+ labelId: createElementId (),
431+ tributeId: createElementId (),
432+
433433 /**
434434 * Non-reactive property to store Tribute instance
435435 *
@@ -559,7 +559,7 @@ export default {
559559 },
560560
561561 initializeTribute () {
562- const renderMenuItem = (content ) => ` <div id="nc-rich-contenteditable-tribute-item- ${ createElementId ()} " class="${ this .$style [' tribute-item' ]} " role="option">${ content} </div>`
562+ const renderMenuItem = (content ) => ` <div id="${ createElementId ()} " class="${ this .$style [' tribute-item' ]} " role="option">${ content} </div>`
563563
564564 const tributesCollection = []
565565 tributesCollection .push ({
0 commit comments