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

Modifying mixed content in EditMOM3 leads to duplication of content #1194

Open
NTsch opened this issue Jan 24, 2025 · 0 comments
Open

Modifying mixed content in EditMOM3 leads to duplication of content #1194

NTsch opened this issue Jan 24, 2025 · 0 comments
Labels
Milestone

Comments

@NTsch
Copy link
Collaborator

NTsch commented Jan 24, 2025

Deletion of mixed content (text and child elements) in the editor window leads to the duplication of text contents, see for example this video.

The cause seems to be in the replaceMixedSelection function in the XPath module, specifically this line:

copyFlag ? result += ch : null;

Fixing this could be quite involved. So far, using only backspace for deletions, as opposed to marking and deleting mixed content, seems to be a viable workaround.

@NTsch NTsch added the bug label Jan 24, 2025
@NTsch NTsch added this to the EditMOM3 milestone Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant