本文整理汇总了TypeScript中tinymce/core/api/Editor.setProgressState函数的典型用法代码示例。如果您正苦于以下问题:TypeScript setProgressState函数的具体用法?TypeScript setProgressState怎么用?TypeScript setProgressState使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setProgressState函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: function
const addToDictionary = function (editor: Editor, pluginUrl: string, startedState: Cell<boolean>, textMatcherState: Cell<DomTextMatcher>, currentLanguageState: Cell<string>, word: string, spans: Element[]) {
editor.setProgressState(true);
sendRpcCall(editor, pluginUrl, currentLanguageState, 'addToDictionary', word, () => {
editor.setProgressState(false);
editor.dom.remove(spans, true);
checkIfFinished(editor, startedState, textMatcherState);
}, (message) => {
editor.notificationManager.open({ text: message, type: 'error' });
editor.setProgressState(false);
});
};
示例2:
}, (message) => {
editor.notificationManager.open({ text: message, type: 'error' });
editor.setProgressState(false);
});
示例3: sendRpcCall
sendRpcCall(editor, pluginUrl, currentLanguageState, 'addToDictionary', word, () => {
editor.setProgressState(false);
editor.dom.remove(spans, true);
checkIfFinished(editor, startedState, textMatcherState);
}, (message) => {