Ckeditor 5无法两次插入图像

问题描述

 const imageElementx = writer.createElement('image',{
                        src: 'https://avatars1.githubusercontent.com/u/156149?s=88&u=b1069e01fff1c82c942d829fa46aea3a2dfca3c4&v=4',});
editor.model.insertContent(imageElementx,editor.model.document.selection);
editor.model.insertContent(imageElementx,editor.model.document.selection);

我试图插入两次图像,但是只能插入一次。 由于使用insertContent之后,焦点仍然位于第一个焦点上,因此它将被第二个焦点替换。

是否有机会在插入内容后立即移动焦点?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)