question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Paste content with styling issue

See original GitHub issue

Hello,

I want to thank you once again for this editor. Very good job! After your newest release I used attributesWhitelist to keep style attribute while pasting following elements: table, tbody, thead, tr, td. I have following problem: some of styles are just missing. What is really strange, that this happens only when I have version from NPM. When I downloaded release version and added whole dist folder, then suneditor behaves as it should.

In my case, the border-type style disappear (I noticed only this, maybe something else). Please check it on following codesandboxes - please select and copy table which is under text editor and try to paste it. For this example I disabled your custom CSS styles for tables.

NPM example: https://i.imgur.com/wb0cuzC.gifv NPM sandbox: https://codesandbox.io/s/suneditor-paste-npm-9mwt9

non-NPM example: https://i.imgur.com/6en9YRp.gifv non-NPM: https://codesandbox.io/s/suneditor-paste-no-npm-e7fs4

I will be thankful for any investigation in this case and fixing this bug, because this is one of most important functionality in my application (pasting every style).

Kind regards, Adrian

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JiHong88commented, Mar 19, 2020

The 2.27.0 version has been updated. If there is an issue, please register as a new issue. Thank you.

0reactions
JiHong88commented, Mar 11, 2021

@deveshlashkari This issue has been resolved. Try the latest version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Paste content with styling issue #248 - JiHong88/suneditor
When I downloaded release version and added whole dist folder, then suneditor behaves as it should. In my case, the border-type style disappear...
Read more >
Control the formatting when you paste text - Microsoft Support
Set default paste options · Go to File > Options > Advanced. · Under Cut, copy, and paste, select the down arrow for...
Read more >
On copy paste and key press formatting issue in editable content
i have any issue when i copy some rich text from like web page or word file to editable content in my site...
Read more >
How to Copy and Paste in WordPress without Formatting Issues
In this article, we'll share how to easily copy and paste into WordPress without any unwanted formatting and styles. Copying and pasting text...
Read more >
Prevent Formatting Problems with Paste from Rich Text
If you paste from a rich text editor, we recommend using the Paste from Rich Text Editor tool to get your content into...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found