Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
peach-html5-editor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
65ceb13
)
don't leave empty style attributes
author
Jason Woofenden
<jason@jasonwoof.com>
Wed, 17 May 2017 05:21:53 +0000
(
01:21
-0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Wed, 17 May 2017 05:21:53 +0000
(
01:21
-0400)
editor.js
patch
|
blob
|
history
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')
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) {
return n.attrs.style = style
} else {
if (n.attrs.style != null) {