This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
128 changed files
with
31,794 additions
and
28,269 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
); | ||
}); |
Oops, something went wrong.