开发者

Ekit problem with pasting richtext copied from Ekit to other richtext [duplicate]

开发者 https://www.devze.com 2023-02-26 05:52 出处:网络
This question already has an answer here: Problem copying HTML from JEditorPane to external applications
This question already has an answer here: Problem copying HTML from JEditorPane to external applications (1 answer) Closed 2 years ago.

Currently I am trying to find cause of the behavior that richtext from Ekit (JTextPane derivativie) cannot be pasted into other richtext editor like one in Thunderbird, Gmail, MS Word.

Tested, it doesn't work on Windows XP, Windows 7, Ubuntu.

Copying from Ekit to plain text editors works.

Reference: Ekit site

I have dump of clipboard from Ekit:


Version:0.9
StartHTML:-1
EndHTML:-1
StartFragment:0000000111
EndFragment:0000000197
<!--StartFragment-->
<html>
  <body>
<u>o</u><i>ne
line</i>
s<b>econd line</b>
  </body>
</html>
<!--EndFragment-->

and from Thunderbird开发者_高级运维 for comparison:


Version:0.9
StartHTML:00000120
EndHTML:00000218
StartFragment:00000154
EndFragment:00000182
SourceURL:about:blank
<html><body>
<!--StartFragment--><b>sad</b>
nak<u>dbnask</u> <!--EndFragment-->
</body>
</html>

Any tips where I should make changes or why it is not working?

Is position of StartFragment tag a problem or StartHTML and EndHTML values are? Maybe both?


I solved by setting the dom.event.clipboardevents.enabled to false in firefox about:config

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号