Javascript 从HTML元素获取Quill编辑器实例

Javascript 从HTML元素获取Quill编辑器实例,javascript,html,quill,Javascript,Html,Quill,假设我为某个元素创建了一个编辑器实例,例如通过consteditor=newquill(“#editor”,{…some options}) 现在,我想在只有元素可用时获得这个编辑器实例,例如类似于const editor=Quill.existingeditorfromfromelement(“#editor”) 原因是我正在构建一个可以插入现有网站的组件,以增强其编辑器,我需要一种方法来获取其编辑器实例。这可以通过使用Quill.find(“#editor”),请参阅

假设我为某个元素创建了一个编辑器实例,例如通过
consteditor=newquill(“#editor”,{…some options})

现在,我想在只有元素可用时获得这个编辑器实例,例如类似于
const editor=Quill.existingeditorfromfromelement(“#editor”)


原因是我正在构建一个可以插入现有网站的组件,以增强其编辑器,我需要一种方法来获取其编辑器实例。

这可以通过使用
Quill.find(“#editor”),请参阅