It might be because execCommand() is a proprietary, IE-only feature. Not sure how it would've worked in FF unless you were using a different implementation at the time...
I developed it all the time thinking towards Firefox and using an article I found at Mozilla WebDev about Midas<http://developer.mozilla.org/en/docs/Rich-Text_Editing_in_Mozilla>. I really can't find an explanation but it's driving me nuts. On 3/20/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
Abel Tamayo schrieb: > but others like support for snippets I don't even know what that > means. Also, I couldn't find better icons for foreground and > background colors; I thought those were OK. Okay, I write together a "usecase", more details hopefully coming later. I want to write a post on my blog containing a few code snippets. Something about jQuery. So I start with a few paragraphs of text, maybe adding a bit bold text here and there, or a few subheadlines. Now comes the first HTML snippet I want to present. I copy a bit of HTML from a demo page, and insert it as escaped HTML into the page. Here the editor has to present a one- or two-click approach of inserting this: <pre><code class="html">(pasted, escaped html)</code></pre>. A few lines later I want to insert a bit JavaScript, no escaping neccessary, but I want to have the correct pre/code tags around it: <pre><code class="javascript">(pasted js)<code></pre>. Another few lines later I have some inline Javascript, somewhere in a sentence: <code class="javascript">(pasted js)</code>. I wouldn't mind configuring support for JS and other languages I'd like to use, but at least the HTML support with escaping must be built-in. The actualy syntax-highlighting on the code elements (according to the given class) is done by the excellent Chili plugin (http://www.mondotondo.com/aercolino/noteslog/?cat=8). -- Jörn Zaefferer http://bassistance.de _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
