* update kindeditor.

This commit is contained in:
Catouse
2019-06-03 16:37:40 +08:00
parent 53ee56bfe7
commit 4b1d132e4d
2 changed files with 8 additions and 6 deletions
+6 -4
View File
@@ -4906,12 +4906,14 @@
items.pop();
}
var prevItem = null;
var filterItems = [];
_each(items, function(i) {
if(this.title == '-' && prevItem.title == '-') {
delete items[i];
if (!prevItem || !(prevItem.title === '-' && this.title === '-')) {
filterItems.push(this);
prevItem = this;
}
prevItem = this;
});
items = filterItems;
if(items.length > 0) {
e.preventDefault();
var pos = K(self.edit.iframe).pos(),
@@ -10051,7 +10053,7 @@ KindEditor.EditorClass.prototype.setPlaceholder = function(placeholder, asHtml)
var $doc = $(edit.doc);
var $placeholder = $doc.find('.kindeditor-ph');
if (!$placeholder.length) {
$placeholder = $('<div class="kindeditor-ph" style="width:100%; color:#888; padding: 8px; background:none; position:absolute;z-index:10;top:0;border:0;overflow:auto;resize:none; pointer-events:none; white-space: pre-wrap;"></div>');
$placeholder = $('<div class="kindeditor-ph" style="width:100%; color:#888; padding: 8px; background:none; position:absolute;z-index:10;top:0;border:0;overflow:auto;resize:none; pointer-events:none; white-space: pre-wrap; font-size: 13px"></div>');
if (options.placeholderStyle) {
$placeholder.css(options.placeholderStyle);
}
File diff suppressed because one or more lines are too long