Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit df2e796

Browse files
committed
Merge pull request #286 from tssb/master
Fixed updatePlaceholder function
2 parents 9357bea + d211ce6 commit df2e796

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,11 @@
184184
* @return {void}
185185
*/
186186

187-
Core.prototype.editorUpdatePlaceholder = function (el) {
187+
Core.prototype.editorUpdatePlaceholder = function (el, dontShow) {
188188
var contents = $(el).children()
189189
.not('.medium-insert-buttons').contents();
190190

191-
if (contents.length === 1 && contents[0].nodeName.toLowerCase() === 'br') {
191+
if (!dontShow && contents.length === 1 && contents[0].nodeName.toLowerCase() === 'br') {
192192
this.showPlaceholder(el);
193193
this.base._hideInsertButtons($(el));
194194
} else {

0 commit comments

Comments
 (0)