Skip to content

Commit

Permalink
Fix inlineHighlight() after is() API change.
Browse files Browse the repository at this point in the history
  • Loading branch information
jodator committed Jul 21, 2020
1 parent b79115d commit 06c8992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ckeditor5-typing/src/utils/inlinehighlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function inlineHighlight( editor, attributeName, tagName, classNa
// There might be multiple view elements in the `viewRange`, for example, when the `a` element is
// broken by a UIElement.
for ( const item of viewRange.getItems() ) {
if ( item.is( tagName ) && !item.hasClass( className ) ) {
if ( item.is( 'element', tagName ) && !item.hasClass( className ) ) {
writer.addClass( className, item );
highlightedElements.add( item );
changed = true;
Expand Down

0 comments on commit 06c8992

Please sign in to comment.