Changeset 673
- Timestamp:
- 01/18/07 23:29:44 (6 years ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
XinhaCore.js (modified) (4 diffs)
-
functionsMozilla.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/XinhaCore.js
r672 r673 3669 3669 return false; 3670 3670 } 3671 3672 // backcolor only works with useCSS/styleWithCSS (see mozilla bug #279330 & Midas doc) 3673 // and its also nicer as <font> 3674 if ( Xinha.is_gecko ) 3675 { 3676 try 3677 { 3678 editor._doc.execCommand('useCSS', false, false); // useCSS deprecated & replaced by styleWithCSS 3679 editor._doc.execCommand('styleWithCSS', false, true); 3680 3681 } catch (ex) {} 3682 } 3671 3683 3672 3684 var btn = editor._toolbarObjects[cmdID].element; … … 3683 3695 initcolor = Xinha._colorToRgb(editor._doc.queryCommandValue("hilitecolor")); 3684 3696 } 3685 // @todo : useCSS is deprecated, see ticket #6193686 //[wymsy]: mozilla bug #279330 has been fixed, I don't think we need this any more3687 /* if ( Xinha.is_gecko )3688 {3689 try3690 {3691 // editor._doc.execCommand('useCSS', false, false); //switch on useCSS (mozilla bug #279330)3692 } catch (ex) {}3693 }*/3694 3697 } 3695 3698 else … … 3725 3728 this.focusEditor(); 3726 3729 cmdID = cmdID.toLowerCase(); 3727 // @todo : useCSS is deprecated, see ticket #6193730 // useCSS deprecated & replaced by styleWithCSS 3728 3731 if ( Xinha.is_gecko ) 3729 3732 { … … 3731 3734 { 3732 3735 this._doc.execCommand('useCSS', false, true); //switch useCSS off (true=off) 3736 this._doc.execCommand('styleWithCSS', false, false); //switch styleWithCSS off 3737 3733 3738 } catch (ex) {} 3734 3739 } -
trunk/functionsMozilla.js
r672 r673 335 335 if ( typeof sel == 'undefined' ) 336 336 { 337 debugger;338 337 sel = this._getSelection(); 339 338 }
