Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #2271: Editor infinite loop pasting HTML #3099

Merged
merged 1 commit into from
Jul 23, 2022

Conversation

melloware
Copy link
Member

###Defect Fixes
Fix #2271: Editor infinite loop pasting HTML

@mertsincan this was a tricky one! Because Quill rerranges Styles on paste for example

     * elem1 = style="color: red; font-size: 28px"
     * elem2 = style="font-size: 28px; color: red"

I had to use some Stack Overflow code that I ended up tweaking to compare two HTML nodes are equivalent regardless of Attribute Order or even Style order.

@melloware melloware merged commit 106494b into primefaces:master Jul 23, 2022
@melloware melloware deleted the PR2271-3 branch July 23, 2022 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Editor: 'Maximum update depth exceeded' on pasting formatted text
1 participant