Skip to content

Commit

Permalink
don't verify html
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Oct 18, 2018
1 parent 51c118f commit ace7b50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/editor/src/components/rich-text/tinymce.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export default class TinyMCE extends Component {
browser_spellcheck: true,
entity_encoding: 'raw',
convert_urls: false,
verify_html: false,
inline_boundaries_selector: 'a[href],code,b,i,strong,em,del,ins,sup,sub',
plugins: [],
} );
Expand Down Expand Up @@ -249,6 +250,10 @@ export default class TinyMCE extends Component {
initialHTML = toHTMLString( defaultValue, multilineTag );
}

if ( initialHTML === '' ) {
initialHTML = '<br data-mce-bogus="1">';
}

return createElement( tagName, {
...ariaProps,
className: classnames( className, 'editor-rich-text__tinymce' ),
Expand Down

0 comments on commit ace7b50

Please sign in to comment.