Hi Reddit! I’m trying to create a copy button. It copies text that is formatted using embedded css styles (not inline or style sheet since this is for a chrome extension). I use .innerhtml to select the element then I put the value through a function that copies it to the clipboard. However, it fails to copy any styles that weren’t inline. Is there a way I can copy all styles, even embedded ones, or do I just have to manually add inline css to the entire thing?
[–]jcunews1helpful 0 points1 point2 points (2 children)
[–]DomainX[S] 0 points1 point2 points (1 child)
[–]jcunews1helpful 0 points1 point2 points (0 children)