wysihtmlプラグインを実行してロードが完了したら関数を実行したい場合があります。
そんな時は、下のようにloadメソッドを使えばいけるみたい。
var editor = new wysihtml5.Editor('wysihtml5-textarea', {
toolbar:'wysihtml5-toolbar',
parserRules:wysihtml5ParserRules
});
editor.on("load", function(){
console.log("hoge")
});参考access the bootstrap-wysihtml5 editor object
Events
0 コメント:
コメントを投稿