Paste content with styling issue
See original GitHub issueHello,
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:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
The 2.27.0 version has been updated. If there is an issue, please register as a new issue. Thank you.
@deveshlashkari This issue has been resolved. Try the latest version.