0
私のサイトのテキストエディタとしてQuill text editorを使用しています。サイトオプションの1つは、動的テキストエディタを作成することです。クイルエディタを定義する関数は、クイックテキストエディタJQueryで作成した後にインスタンスを使用する方法
function quillDefine(quillID) //quillID is the id of the div that I'm going to define as quill element
{
var toolbarOptions =
[
['bold', 'italic', 'underline', 'strike'],
['blockquote'],
[{'align':[]}],
['clean']
]
var quill = new Quill('#'+quillID, {
modules: {toolbar: toolbarOptions},
theme: 'snow'
});
}
他のファンクションの中で作成したこのクイルインスタンスを使用するにはどうすればよいですか?例えば :私は、私が作成したインスタンスに到達することができますどのように
funciton getQuillInstanceText(quillID)
{
//I know I can use $('#'quillID).html(), but is that the proper way to do so?
}
私は(のgetContentsようquill API functionsを使用したい)となど
? ありがとうございました。