scripts/core/editor3/helpers/inlineStyles.ts
Function sanitizeContent
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function sanitizeContent(editorState, styles = acceptedInlineStyles) {
let contentState = editorState.getCurrentContent();
const ignoreStyle = (style) => styles.indexOf(style) === -1;
const getSelection = (block, start, end) => SelectionState.createEmpty(block.getKey()).merge({