From 2832cebb4820939f0639ccc2da138653f7557563 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Fri, 30 Nov 2007 01:45:07 +0000 Subject: [PATCH] Fixed note state detection of bold/italic in IE 6 and 7. --- static/js/Editor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/js/Editor.js b/static/js/Editor.js index b40a543..124154f 100644 --- a/static/js/Editor.js +++ b/static/js/Editor.js @@ -536,6 +536,9 @@ Editor.prototype.current_node_names = function () { while ( node ) { var name = node.nodeName.toLowerCase(); + if ( name == "strong" ) name = "b"; + if ( name == "em" ) name = "i"; + if ( name != "a" || node.href ) node_names.push( name );