【发布时间】:2016-04-06 20:55:16
【问题描述】:
我想选择性地避免用 CKEDITOR.replaceAll 替换 textareas。我不能简单地使用替换。我必须使用文档中提到的自定义断言函数。
http://docs.ckeditor.com/#!/api/CKEDITOR-method-replaceAll
// Selectively replace <textarea> elements, based on custom assertions.
CKEDITOR.replaceAll( function( textarea, config ) {
// An assertion function that needs to be evaluated for the <textarea>
// to be replaced. It must explicitely return "false" to ignore a
// specific <textarea>.
// You can also customize the editor instance by having the function
// modify the "config" parameter.
} );
但是 javascript 中没有 assert。断言的语法是什么?
【问题讨论】:
标签: javascript ckeditor assert assertions assertion