Rich text formatting: Copy - paste from a view to a form

By: Paul Bruikman | Asked: 10/25/2022
ForumsCategory: General questionsRich text formatting: Copy - paste from a view to a form
Paul Bruikman asked 1 year ago

I have a rich text field in form A that I display on a view.
If I submit an entry that contains text with font colours then those display just fine in the view. Now here is my question: I think I used to be able to copy this text from the view and paste it in another rich text field in form B and also copy the font colouring. It does not do that now. The font colours are in between "span" tags and these do not get copied to the clipboard. I've been tinkering and googling duck-duck-go-ing but am so far unable to fix this. Does anyone have a suggestion or is there no way around this? I've made test page where you can see and try my issue here.

1 Answers
Bobby Clapp answered 1 year ago
Paul Bruikman replied 1 year ago

<p>Hey Bob, Thanks for the suggestion. That page is indeed about a similar issue. So I did some further testing and found out that instead of what I thought earlier, the formatting DOES come to the clipboard. If I paste into a rich text editor on my mac the formatting is there and also if I paste it into a libreoffice text doc.</p><p>The solution is somewhere in the rich text field (I hope).</p>

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community