从羽毛笔中删除HTML代码

时间:2020-06-17 06:32:06

标签: javascript html quill

我想从我的QUILL编辑器中删除html代码。保存鹅毛笔的内容时,是否有删除HTML代码的选项或方法?

这是我的代码:

function initialize_quill(){
var limit = 250;

var options = {
    theme: 'snow'
};

var collectionnotequill = new Quill('#collection-note-quill', options);

collectionnotequill.on('text-change', function () {
    if (collectionnotequill.getLength() > limit) {
        collectionnotequill.deleteText(limit, collectionnotequill.getLength());
    }
});
}

0 个答案:

没有答案
相关问题