Roo/form/HtmlEditor/ToolbarStandard.js
authorEdward <edward@roojs.com>
Mon, 13 Jan 2014 07:21:44 +0000 (15:21 +0800)
committerEdward <edward@roojs.com>
Mon, 13 Jan 2014 07:21:44 +0000 (15:21 +0800)
Roo/form/HtmlEditor/ToolbarStandard.js

index 5aee06c..a1f05bb 100644 (file)
@@ -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);