Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidsector9 committed Oct 31, 2023
1 parent 2ca25b9 commit 3dbb952
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { registerFormatType, create, insert, applyFormat, getActiveFormats } from '@wordpress/rich-text';
import {
registerFormatType,
create,
insert,
applyFormat,
getActiveFormats,
} from '@wordpress/rich-text';
import {
Fragment,
useState,
Expand Down Expand Up @@ -56,7 +62,12 @@ registerFormatType( type, {
} );

for ( const format of getActiveFormats( value ) ) {
richTextCharacter = applyFormat( richTextCharacter, format, 0, 1 );
richTextCharacter = applyFormat(
richTextCharacter,
format,
0,
1
);
}

const modified = insert( value, richTextCharacter, start, end );
Expand Down

0 comments on commit 3dbb952

Please sign in to comment.