diff --git a/src/editor/contentState/updateCtrl.js b/src/editor/contentState/updateCtrl.js index 94f4ae92..7ba17d05 100644 --- a/src/editor/contentState/updateCtrl.js +++ b/src/editor/contentState/updateCtrl.js @@ -397,8 +397,7 @@ const updateCtrl = ContentState => { '(': ')', '*': '*', '_': '_', - '"': '"', - "'": "'" + '"': '"' } if (start.key === end.key && start.offset === end.offset && event.type === 'input') { @@ -409,7 +408,7 @@ const updateCtrl = ContentState => { const postInputChar = text.charAt(+offset) /* eslint-disable no-useless-escape */ if ( - (autoPairQuote && /["']{1}/.test(inputChar)) || + (autoPairQuote && /["]{1}/.test(inputChar)) || (autoPairBracket && /[\{\[\(]{1}/.test(inputChar)) || (autoPairMarkdownSyntax && /[*_]{1}/.test(inputChar)) ) {