本文整理汇总了TypeScript中tinymce/core/api/EditorManager.remove函数的典型用法代码示例。如果您正苦于以下问题:TypeScript remove函数的具体用法?TypeScript remove怎么用?TypeScript remove使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了remove函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: function
suite.asyncTest('Externally destroyed editor', function (_, done) {
EditorManager.remove();
EditorManager.init({
selector: 'textarea',
skin_url: '/project/js/tinymce/skins/lightgray',
init_instance_callback (editor1) {
Delay.setTimeout(function () {
// Destroy the editor by setting innerHTML common ajax pattern
viewBlock.update('<textarea id="' + editor1.id + '"></textarea>');
// Re-init the editor will have the same id
EditorManager.init({
selector: 'textarea',
skin_url: '/project/js/tinymce/skins/lightgray',
init_instance_callback (editor2) {
LegacyUnit.equal(EditorManager.get().length, 1);
LegacyUnit.equal(editor1.id, editor2.id);
LegacyUnit.equal(editor1.destroyed, 1, 'First editor instance should be destroyed');
teardown(done);
}
});
}, 0);
}
});
});
示例2: done
window.setTimeout(function () {
EditorManager.remove();
done();
}, 0);
示例3:
const sRemoveAllEditors = Step.sync(function () {
EditorManager.remove();
});
示例4:
const sRemoveAllEditors = Step.label('sRemoveAllEditors', Step.sync(function () {
EditorManager.remove();
}));