Text:Rich filter not showing text when opened from file and/or pasted

This is fixed for the next version. It will use the existing text attributes or the default white 72pt if you have not changed it.

Before pasting. Has the Vedana font selected.

Unfortunately, this editor does not let you change the text attributes of something unselected at the current cursor position and then paste or start typing using those new attributes. It only lets you format by selection. Keep in mind that I did not write much of this rich text editor; it comes from a library. It does have an API and might be able to make it do that, but it is not easy, and we are not really in the word processor business. It might be improved later.

This time I use text from Shotcut’s features page. After pasting. Takes on the MS Shell Dlg 2 font.

I have not decided what to do about this one. Since you have copied HTML, it pastes as HTML. However, since it only supports a subset of HTML4 and CSS2 whereas the bulk of the web now is using HTML5 and CSS3. It is nice that some things are preserved like bullets, heading, bold, etc. but unfortunately not text color and font, perhaps due to the modern usage of CSS3. We are simply using builtin behavior here and not trying to snoop through the contents of what is pasted and touch it up. This is the main reason why Paste Text Only was added. My options are:

  1. Leave it the way it is.
  2. Make Paste always do what Paste Text Only does: lose all formatting. Currently leaning towards this.
  3. Try to add code that looks at every text fragment after pasted, and changes the text color away from undefined (the current problem) and the font away from “MS Shell Dlg 2”. (Not in scope for next release).
1 Like