projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
155fd53
)
Roo/form/HtmlEditor/ToolbarStandard.js
author
Edward
<edward@roojs.com>
Mon, 13 Jan 2014 07:21:44 +0000
(15:21 +0800)
committer
Edward
<edward@roojs.com>
Mon, 13 Jan 2014 07:21:44 +0000
(15:21 +0800)
Roo/form/HtmlEditor/ToolbarStandard.js
patch
|
blob
|
history
diff --git
a/Roo/form/HtmlEditor/ToolbarStandard.js
b/Roo/form/HtmlEditor/ToolbarStandard.js
index
5aee06c
..
a1f05bb
100644
(file)
--- a/
Roo/form/HtmlEditor/ToolbarStandard.js
+++ b/
Roo/form/HtmlEditor/ToolbarStandard.js
@@
-368,8
+368,11
@@
Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype, {
html: this.cleanStyles[i],
handler: function(a,b) {
var c = editor.getValue();
+ var nodes = [];
Roo.log(Roo.get(editor.doc.body));
- c.select()
+ c.select('[style]').each(function(i) {
+ nodes.push(i.dom);
+ });
// editor.insertAtCursor(String.fromCharCode(a.html.replace('&#','').replace(';', '')));
//editor.insertAtCursor(a.html);