-
Notifications
You must be signed in to change notification settings - Fork 264
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
Cannot get indices for attribute changes from content in a TableCell #12
Comments
Did you find anything ? I have the same problem...I use a lot of tables for formatting. |
I did, but it was some time ago. Looking at the code I haven't touched for a while it looks like what I did was this (apols for massive code paste...):
Hope that helps!! |
This script is working almost exactly as I need it, but for one crucial thing.
The
processText
function usesgetTextAttributeIndices()
to work out where bold, links, italics etc start and finish in a block of text. That works perfectly on aText
element, but not on aTableCell
element.I have content editors entering content into tables for specific HTML components, which I need to parse and render. But when trying to use this method the console gives me the message:
...because there is mo method getTextAttributeIndices for a TableCell. And if I use
getText()
on my table cell first, I lose the formatting and the indices vanish.I cannot find a workaround at the moment.
The text was updated successfully, but these errors were encountered: