Skip to content

Commit

Permalink
Remove TinyMCE boundaries
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jan 23, 2019
1 parent 718b4fe commit 851cfb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/editor/src/components/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,8 @@ export class RichText extends Component {
* Handles the `selectionchange` event: sync the selection to local state.
*/
onSelectionChange() {
const { start, end, formats } = this.createRecord();
const value = this.createRecord();
const { start, end, formats } = value;

if ( start !== this.state.start || end !== this.state.end ) {
const isCaretWithinFormattedText = this.props.isCaretWithinFormattedText;
Expand All @@ -398,6 +399,7 @@ export class RichText extends Component {
}

this.setState( { start, end } );
this.applyRecord( value );
}
}

Expand Down
1 change: 0 additions & 1 deletion packages/editor/src/components/rich-text/tinymce.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ export default class TinyMCE extends Component {
// already with dangerouslySetInnerHTML, we don't need this to be
// verified.
verify_html: false,
inline_boundaries_selector: 'a[href],code,b,i,strong,em,del,ins,sup,sub',
plugins: [],
forced_root_block: multilineTag || false,
// Allow TinyMCE to keep one undo level for comparing changes.
Expand Down

0 comments on commit 851cfb4

Please sign in to comment.