'Sometimes CKEditor insert element in starting of the position- Should be add on current cursor position at all
I'm getting issues sometimes, when I'm trying to insert Html at current cursor position. Sometimes it work fine and sometimes not. But as soon I'm doing one hard refresh(CTRL+SHIFT + R), it start working perfectly through current component. Technology : Angular 8 CKEditor version : ^4.9.10
Right now we are creating multiple instance of ckeditor like:
let ckEditor = this.ckeditorViewChildren.forEach((instance, indexs) => {
if (indexs === superIndex) {
instance.instance.focus();
newFallbackText ? instance.instance.insertHtml(` {{${tagname} | ${newFallbackText}}}`) : instance.instance.insertHtml(` {{${tagname}}}`)
}
})
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
