-
Notifications
You must be signed in to change notification settings - Fork 367
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
ClassApplier should check Attributes during applyToTextNode() and isRemovable() #206
Comments
I seem to have made a pretty half-hearted job of implementing |
I agree that this issue is related to the one I created (#213). In my pull request #217, I added some missing code for the Please note that I need the |
There is already I will think about this properly. I'd like to postpone doing this until the next version: 1.3 has been hanging around in alpha for a ridiculous amount of time now. |
I second the value in My temporary workaround involves always setting |
Is there an example how to use elementProperties? I want to set an HTML5-compliant attribute (data-xy). |
To apply data-x you need to use elementAttributes in options object @tobiasschweizer |
Here is a summary of the issues, which is as much for my benefit as anything else:
I have changed the code to do the same thing for
I will leave it as it is now and in the documentation suggest being very careful with using both |
Source: https://github.com/timdown/rangy/blob/780f783/src/js/modules/rangy-cssclassapplier.js#L681-L684
Within
createContainer()
, we ensure the new element has all of the expected properties and attributes. IfuseExistingElements
, then we should maintain consistency by ensuring the existing elements already have the requested attributes.This should be done in
applyToTextNode()
andisRemovable()
.The text was updated successfully, but these errors were encountered: