Open DerSimeon opened 1 day ago
The editing area is created using CodeMirror, and it's not possible to embed HTML into it via slots. The content area of the editor is managed by CodeMirror, so any custom HTML elements, such as a context menu, should be defined outside of the editor in other locations. You can adjust the position of your menu according to the following example to ensure it displays correctly where you need it.
editorRef.value?.domEventHandlers({
contextmenu(e) {
// Consider displaying the menu or adjusting its position here.
console.log('===', e);
},
});
A great idea
It would be good to have a slot inside the editor, so we make changes to the actual text-input. something like: