| 211 | | // Tell Gecko to use or not the <SPAN> tag for the bold, italic and underline. |
| 212 | | try |
| 213 | | { |
| 214 | | oDoc.execCommand( 'styleWithCSS', false, false ) ; |
| 215 | | } |
| 216 | | catch (e) |
| 217 | | { |
| 218 | | // As evidenced here, useCSS is deprecated in favor of styleWithCSS: |
| 219 | | // http://www.mozilla.org/editor/midas-spec.html |
| 220 | | oDoc.execCommand( 'useCSS', false, true ) ; |
| 221 | | } |
| 222 | | |
| 223 | | // Analyzing Firefox 1.5 source code, it seams that there is support for a |
| 224 | | // "insertBrOnReturn" command. Applying it gives no error, but it doesn't |
| 225 | | // gives the same behavior that you have with IE. It works only if you are |
| 226 | | // already inside a paragraph and it doesn't render correctly in the first enter. |
| 227 | | // oDoc.execCommand( 'insertBrOnReturn', false, false ) ; |
| 228 | | |