Skip to content

Commit

Permalink
yabwe#1127 | Placeholder is visible when only empty table is in Editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Durgesh Ahire committed Jun 20, 2016
1 parent 3cf797e commit f8412b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/extensions/placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

updatePlaceholder: function (el, dontShow) {
// If the element has content, hide the placeholder
if (el.querySelector('img, blockquote, ul, ol') || (el.textContent.replace(/^\s+|\s+$/g, '') !== '')) {
if (el.querySelector('img, blockquote, ul, ol, table') || (el.textContent.replace(/^\s+|\s+$/g, '') !== '')) {
return this.hidePlaceholder(el);
}

Expand Down

0 comments on commit f8412b3

Please sign in to comment.