import { BLOCK_TYPES } from '../text-editor-constants';
const withLinks = editor => {
  const {
    isInline
  } = editor;
  const newIsInline = element => {
    if (element.type === BLOCK_TYPES.LINK) {
      return true;
    }
    return isInline(element);
  };
  editor.isInline = newIsInline;
  return editor;
};
export default withLinks;