CKEditor key event not updating text properly

拜拜、爱过 提交于 2019-12-05 22:48:11

I solved it handling the key event in a different way. You can see it below:

CKEDITOR.instances.editor.on('contentDom', function() 
{
    CKEDITOR.instances.editor.document.on('keyup', function(event) 
    {
        var preview = document.getElementById('some-div');
        preview.innerHTML = CKEDITOR.instances.editor.getData();
    });
});
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!