[Lutinweb-commits] r53 - trunk/lutinrss/src/main/resources/fckeditor/editor/plugins/rssinclude
Author: tchemit Date: 2008-05-18 21:07:58 +0000 (Sun, 18 May 2008) New Revision: 53 Modified: trunk/lutinrss/src/main/resources/fckeditor/editor/plugins/rssinclude/fckplugin.js Log: on filtre sur l'attribut name car des probl?\195?\168mes de compatibilit?\195?\169 entre ie et firefox, de plus cet attribut pourrait varier... Modified: trunk/lutinrss/src/main/resources/fckeditor/editor/plugins/rssinclude/fckplugin.js =================================================================== --- trunk/lutinrss/src/main/resources/fckeditor/editor/plugins/rssinclude/fckplugin.js 2008-05-18 21:06:06 UTC (rev 52) +++ trunk/lutinrss/src/main/resources/fckeditor/editor/plugins/rssinclude/fckplugin.js 2008-05-18 21:07:58 UTC (rev 53) @@ -13,17 +13,17 @@ FCK.ContextMenu.RegisterListener( { AddItems : function( menu, tag, tagName ) { var e = tag; - if (! (e && e.nodeName == 'DIV' && e.getAttribute('class') == 'rssinclude' )) { + if (! (e && e.nodeName == 'DIV' && e.getAttribute('name') == 'rssinclude' )) { var selection = FCKSelection.GetSelection() ; var range = selection.getRangeAt(0) ; e = range.endContainer ; - while (e && (e.nodeName != 'DIV' || e.getAttribute('class') != 'rssinclude')) { + while (e && (e.nodeName != 'DIV' || e.getAttribute('name') != 'rssinclude')) { e = e.parentNode; } } // under what circumstances do we display this option - if (!!e && e.nodeName == 'DIV' && e.getAttribute('class') == 'rssinclude' ) { + if (!!e && e.nodeName == 'DIV' && e.getAttribute('name') == 'rssinclude' ) { FCKSelection.SelectNode(e); // when the option is displayed, show a separator the command menu.AddSeparator() ; @@ -44,7 +44,7 @@ **/ OnDoubleClick = function( e ) { - if ( e.tagName == 'DIV' && e.getAttribute('class') == 'rssinclude' ) { + if ( e.tagName == 'DIV' && e.getAttribute('name') == 'rssinclude' ) { FCKSelection.SelectNode(e); FCKCommands.GetCommand( 'rssinclude' ).Execute() ; }
participants (1)
-
tchemit@users.labs.libre-entreprise.org