New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cited text shows up as ordinary text after returning from external editor #66
Comments
@nicoroeser, I spent the last two days also bugged by this problem. I could not find a solution yet, but I found out the following:
I have zero knowledge about the Mozilla code-base and JavaScript (used to develop this extension), but I hope this information will help the maintainers to hunt down this bug. EDIT: It seems there is a function called |
Hi, thanks for report and investigation. Unfortunately, I haven't found a way to fix this issue with some simple API call. Maybe External Editor could do a rewrap after closing the editor, but it has some side effects as you mention. External Editor can style the message as a HTML even when it is a plaintext, so it can replicate the Thunderbird functionality in principle. (i.e. parsing quotation |
@snipsnipsnip, you wrote:
I am sorry, I don’t know what you mean by this. I hope that it will still be possible to use text-only (
As I am bitten by this issue every day, I am willing to invest a bit of time here and try to produce code that can help. Unfortunately I do not understand the way of going forward which you are outlining here. If you could explain the idea a bit further or could share a few pointers into the code or relevant methods or whatever, I’d be grateful, and will happily give it a try! |
And there is So it seems to me that we have to parse the text in the JavaScript code of the External Editor addon. We need to alternately call I do not understand yet how to move the cursor or how to position I’ve only had a brief look at the source code, and am not an expert on this. Please correct me if I’m wrong. |
Should work on Thunderbird 68. NB: this also converts lines starting with “>” to cited text, even if the text had not been cited before. Most power users might like that, though. And it always changes the citation leaders to default Thunderbird style. Fixes exteditor#66.
I’ve been using #75 for some time now without any problems. Has anyone else tried it and can give feedback? |
Should work on Thunderbird 68. NB: this also converts lines starting with “>” to cited text, even if the text had not been cited before. Most power users might like that, though. And it always changes the citation leaders to default Thunderbird style. Fixes exteditor#66.
Pull request updated and repaired. Tested with several empty and non-empty messages. Looks good to me now. 😄 |
When the external editor opens, and you save the text and quit the external editor, all text shows up as “normal text”. Even lines that had been marked as cited before (blue on white in the default Thunderbird setup; pressing Enter in such a block auto-inserts “> ” at the start of the next line, and such) become ordinary text lines, too (black on white in the default setup).
I think this might be related to #42.
The text was updated successfully, but these errors were encountered: