Thank you for your detailed answer which clarifies a lot of things. I
will investigate the interaction between Thunderbird and the editor
further.

Re. your last comment:
> I _think_ to fix that part you need to get Thunderbird tell Gecko about how
> to format the new paragraph. 

I tried with a <div contenteditable> in Firefox. The editor handles
insertion of images by itself. So the question is: How could
Thunderbird, the invoker of the editor, be notified, so it could in turn
do whatever it does normally (I need to investigate what that is
exactly) to communicate that the format required after the insertion?
Can an callback be installed that the editor calls when new nodes are
created in the DOM tree?

So far I get the following picture of the interaction between Thunderbird and 
the editor:
1) Thunderbird invokes the editor and communicates the initial conditions, 
font, size, etc.
2) The editor does all the editing. When new nodes are created in the DOM, no 
"special" style element is used, so to the Thunderbird user it looks like the 
style gets lost.
3) No callback to Thunderbird takes place while the editor is running.
4) Thunderbird may send "commands" to the editor, to change the font, bold, etc.
5) When the editing is done, Thunderbird receives a copy of the DOM (or the 
plain text or HTML) and stores it or sends it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/584632

Title:
  composer changes font mid email

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/584632/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to