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

index c953976..cbe1c8d 100644 (file)
@@ -367,12 +367,12 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype,  {
                     
                     html: this.cleanStyles[i],
                     handler: function(a,b) {
-                        var c = editor.getValue();
+                        var c = Roo.get(editor.doc.body);
                         var nodes = [];
                         c.select('[style]').each(function(i) {
                             nodes.push(i.dom);
                         });
-                        Roo.log(c);
+                        
 //                        editor.insertAtCursor(String.fromCharCode(a.html.replace('&#','').replace(';', '')));
                         //editor.insertAtCursor(a.html);