本文整理匯總了TypeScript中tinymce/core/dom/EventUtils.Event.clean方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript Event.clean方法的具體用法?TypeScript Event.clean怎麽用?TypeScript Event.clean使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類tinymce/core/dom/EventUtils.Event
的用法示例。
在下文中一共展示了Event.clean方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: function
const createPanel = function (settings) {
EventUtils.Event.clean(viewBlock.get());
viewBlock.update('');
return Factory.create(Tools.extend({
type: 'panel'
}, settings)).renderTo(viewBlock.get()).reflow();
};
示例2: function
const createColorButton = function (settings) {
EventUtils.Event.clean(viewBlock.get());
viewBlock.update('');
return Factory.create(Tools.extend({
type: 'colorbutton'
}, settings)).renderTo(viewBlock.get());
};
示例3: function
const createFitPanel = function (settings) {
EventUtils.Event.clean(viewBlock.get());
viewBlock.update('');
return Factory.create(Tools.extend({
type: 'panel',
layout: 'fit',
width: 200,
height: 200,
border: 1
}, settings)).renderTo(viewBlock.get()).reflow();
};
示例4: function
const createTabPanel = function (settings) {
EventUtils.Event.clean(viewBlock.get());
viewBlock.update('');
return Factory.create(Tools.extend({
type: 'tabpanel',
items: [
{ title: 'a', type: 'spacer', classes: 'red' },
{ title: 'b', type: 'spacer', classes: 'green' },
{ title: 'c', type: 'spacer', classes: 'blue' }
]
}, settings)).renderTo(viewBlock.get()).reflow();
};
示例5: function
const createMenuButton = function (settings) {
EventUtils.Event.clean(viewBlock.get());
viewBlock.update('');
return Factory.create(Tools.extend({
type: 'menubutton',
menu: [
{ text: '1' },
{ text: '2' },
{ text: '3' }
]
}, settings)).renderTo(viewBlock.get());
};
示例6: function
const renderGridPanel = function (settings) {
EventUtils.Event.clean(viewBlock.get());
viewBlock.update('');
const panel = Factory.create(Tools.extend({
type: 'panel',
layout: 'grid',
defaults: { type: 'spacer' }
}, settings)).renderTo(viewBlock.get()).reflow();
resetScroll(panel.getEl('body'));
return panel;
};
示例7: function
const renderPanel = function (settings) {
EventUtils.Event.clean(viewBlock.get());
viewBlock.update('');
const panel = Factory.create(Tools.extend({
type: 'panel',
layout: 'flex',
width: 200, height: 200,
items: [
{ type: 'spacer', classes: 'red' },
{ type: 'spacer', classes: 'green' },
{ type: 'spacer', classes: 'blue' }
]
}, settings)).renderTo(viewBlock.get()).reflow();
resetScroll(panel.getEl('body'));
return panel;
};
示例8: function
Pipeline.async({}, suite.toSteps({}), function () {
EventUtils.Event.clean(viewBlock.get());
viewBlock.detach();
success();
}, failure);
示例9: function
const teardown = function () {
EventUtils.Event.clean(viewBlock.get());
viewBlock.update('');
};
示例10: function
Pipeline.async({}, suite.toSteps({}), function () {
EventUtils.Event.clean(viewBlock.get());
DOMUtils.DOM.remove(DOMUtils.DOM.get('mce-modal-block'));
viewBlock.detach();
success();
}, failure);