Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Gary C. on April 08, 2022, 03:09:28 pm



Title: Rich Text Web Component Copy and Paste
Post by: Gary C. on April 08, 2022, 03:09:28 pm
Hi
It appears that one cannot paste clipboard contents into the rich text editor web component.

Does anyone know if this is intended behaviour or am I missing a property I can set?

We are using 3.20.

Thanks
Gary


Title: Re: Rich Text Web Component Copy and Paste
Post by: Reuben B. on April 11, 2022, 12:56:32 am
What are you pasting?  is it something that could be typed into the Rich Text Editor?

is there a difference between right-click Paste and right-click Paste and Match Style.

Reuben


Title: Re: Rich Text Web Component Copy and Paste
Post by: Gary C. on April 11, 2022, 01:42:25 pm
Hi Reuben
Thanks for replying.
The actual scenario was a user trying to copy text previously entered into a TEXTEDIT control.
They could paste the content into Notepad and Word, just not the rich text component.

I had only being trying the ctrl-v shortcut, but paste and match style from the context menu worked.
Gary


Title: Re: Rich Text Web Component Copy and Paste
Post by: Reuben B. on April 12, 2022, 01:24:43 am
Interesting.  Using a clipboard viewer it appears that the clipboard buffer is populated with html when copying from a TEXTEDIT.  Even if explicitly state that textFormat="plain". Hence not being able to paste into the fglrichtext unless you select "Paste and Match style".

I have created a task to double-check that what we are doing when copying from TEXTEDIT is correct.  It might not be taking textFormat="plain" and textFormat="html" into account.

Reuben


Title: Re: Rich Text Web Component Copy and Paste
Post by: Reuben B. on May 03, 2022, 01:30:35 am
Gary,

For me, there is an improvement between GDC 3.20.20 and GDC 3.20.21.  There isn't an identifiable issue but there is a Qt upgrade that might be responsible.  So if you have not already, double check with latest 3.20 GDC.  The clipboard maybe populated with appropriate content that the fglrichtext web component can interpret.

Reuben