Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
peach-html5-editor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
don't leave empty style attributes
[peach-html5-editor.git]
/
editor.js
diff --git
a/editor.js
b/editor.js
index
0c9cf46
..
e4ab024
100644
(file)
--- a/
editor.js
+++ b/
editor.js
@@
-1833,7
+1833,7
@@
PeachHTML5Editor.prototype.preserve_space = function(n, ideal_target) {
PeachHTML5Editor.prototype.update_style_from_el = function(n) {
var style
style = n.el.getAttribute('style')
- if (style != null) {
+ if (style != null && style != '') {
return n.attrs.style = style
} else {
if (n.attrs.style != null) {