You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
checkAttributeInSelection(selection,attribute){if(selection.isCollapsed){// Check whether schema allows for a text with the attribute in the selection.returnthis.checkAttribute([ ...selection.getFirstPosition().getAncestors(),'$text'],attribute);}else{
So, it passes element, element, element, '$text' to checkAttribute(). Instead, it should pass the actual text node instead of a '$text' string to checkAttribute() so it works on as realistic context as possible.
The text was updated successfully, but these errors were encountered:
It does this now:
So, it passes
element, element, element, '$text'
tocheckAttribute()
. Instead, it should pass the actual text node instead of a'$text'
string tocheckAttribute()
so it works on as realistic context as possible.The text was updated successfully, but these errors were encountered: