2

我正在使用 kindeditor 来存储数据并在 js 中传递该值..它工作正常但是在编辑时我没有让我的内容更新....

<script>

    var editor;
    KindEditor.ready(function(K) {      
        editor = K.create('textarea[name="eventContent"]', {
            allowFileManager : true,
            langType : 'en'
        });

        K('input[name=getHtml]').click(function(e) {
            alert(editor.html());
        });

        //here
        var eventContent = (editor.html());
    });
</script>

var eventContent = (editor.html());
4

0 回答 0