只读模式
group, 分享
评论更多问题
博客标签总是存在一个
This commit is contained in:
lealife
2015-06-15 18:01:48 +08:00
parent 7e458bb433
commit 6987a38820
1453 changed files with 114561 additions and 91536 deletions

14
public/tinymce/classes/ui/DomUtils.js Normal file → Executable file
View File

@ -14,9 +14,11 @@ define("tinymce/ui/DomUtils", [
], function(Tools, DOMUtils) {
"use strict";
var count = 0;
return {
id: function() {
return DOMUtils.DOM.uniqueId();
return 'mceu_' + (count++);
},
createFragment: function(html) {
@ -55,15 +57,15 @@ define("tinymce/ui/DomUtils", [
return document.getElementById(id);
},
addClass : function(elm, cls) {
addClass: function(elm, cls) {
return DOMUtils.DOM.addClass(elm, cls);
},
removeClass : function(elm, cls) {
removeClass: function(elm, cls) {
return DOMUtils.DOM.removeClass(elm, cls);
},
hasClass : function(elm, cls) {
hasClass: function(elm, cls) {
return DOMUtils.DOM.hasClass(elm, cls);
},
@ -75,6 +77,10 @@ define("tinymce/ui/DomUtils", [
return DOMUtils.DOM.setStyle(elm, name, value);
},
getRuntimeStyle: function(elm, name) {
return DOMUtils.DOM.getStyle(elm, name, true);
},
on: function(target, name, callback, scope) {
return DOMUtils.DOM.bind(target, name, callback, scope);
},