Bug 1582410 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

The message compose window editing commands aren't doing things in a very webby way a the moment. Things like cmd_fontFace do a funny little roundtrip through c++, when all that really should be needed is something like editor.document.execCommand

We should convert these over to document.execCommand commands.
See https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand and also https://codepen.io/chrisdavidmills/full/gzYjag/

doStatefulCommand is also now called for every keypress in the editor (due to observing document changed I think), which can't be very great for performance.

Back to Bug 1582410 Comment 0