0
我使用Redactor作为WYSIWYG并使用jQuery设置textarea的html。Redactor:设置textarea的值并禁用回调
$('#description_full').redactor('code.set', 'text goes here', { start: true });
(来源:Textarea editor Redactor. Insert value with jQuery)
然而,当代码使用该设置(其正常工作)的焦点也转移到编辑者,这是我要停用。在API文档(https://imperavi.com/redactor/docs/api/code/)看来,我可以防止更改回调有:
{ start: true }
不幸的是,这没有阻止它注重主编编辑回调。任何想法我在这里做错了吗?