Skip to content

Commit

Permalink
don't verify html
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored and youknowriad committed Oct 29, 2018
1 parent 53c94ea commit 8ff5fe5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/editor/src/components/rich-text/tinymce.js
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 @@ -257,6 +258,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 8ff5fe5

Please sign in to comment.