Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
prettier format file
Browse files Browse the repository at this point in the history
  • Loading branch information
Phinome committed Jun 13, 2017
1 parent 15c2e1f commit c036aa8
Show file tree
Hide file tree
Showing 128 changed files with 31,794 additions and 28,269 deletions.
552 changes: 289 additions & 263 deletions Gruntfile.js

Large diffs are not rendered by default.

31 changes: 18 additions & 13 deletions _parse/background.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
UE.parse.register('background', function (utils) {
var me = this,
root = me.root,
p = root.getElementsByTagName('p'),
styles;
UE.parse.register("background", function(utils) {
var me = this,
root = me.root,
p = root.getElementsByTagName("p"),
styles;

for (var i = 0,ci; ci = p[i++];) {
styles = ci.getAttribute('data-background');
if (styles){
ci.parentNode.removeChild(ci);
}
for (var i = 0, ci; (ci = p[i++]); ) {
styles = ci.getAttribute("data-background");
if (styles) {
ci.parentNode.removeChild(ci);
}
}

//追加默认的表格样式
styles && utils.cssRule('ueditor_background', me.selector + '{' + styles + '}', document);
});
//追加默认的表格样式
styles &&
utils.cssRule(
"ueditor_background",
me.selector + "{" + styles + "}",
document
);
});
Loading

0 comments on commit c036aa8

Please sign in to comment.