提交 91fbb0d4 编写于 作者: C Catouse

* fix kindeditor placeholder not work.

上级 3dbcce6b
......@@ -10102,6 +10102,7 @@ KindEditor.plugin('pasteimage', function(K) {
var oldPlaceholder = self.getPlaceholder();
if (!oldPlaceholder) oldPlaceholder = placeholder;
else if (oldPlaceholder.indexOf(placeholder) < 0) placeholder = oldPlaceholder + '\n' + placeholder;
self.setPlaceholder(placeholder);
}
}
......@@ -11103,7 +11104,7 @@ KindEditor.plugin('table', function (K) {
// 获取用户拖选的单元格
self.plugin.getSelectedCells = function () {
var table = self.plugin.getSelectedTable();
if (table.length) {
if (table && table.length) {
var cells = K('.ke-select-cell', table.get(0));
if (cells && cells.length > 1) {
return cells;
......
......@@ -891,7 +891,7 @@ KindEditor.plugin('table', function (K) {
// 获取用户拖选的单元格
self.plugin.getSelectedCells = function () {
var table = self.plugin.getSelectedTable();
if (table.length) {
if (table && table.length) {
var cells = K('.ke-select-cell', table.get(0));
if (cells && cells.length > 1) {
return cells;
......
......@@ -58,6 +58,7 @@ KindEditor.plugin('pasteimage', function(K) {
var oldPlaceholder = self.getPlaceholder();
if (!oldPlaceholder) oldPlaceholder = placeholder;
else if (oldPlaceholder.indexOf(placeholder) < 0) placeholder = oldPlaceholder + '\n' + placeholder;
self.setPlaceholder(placeholder);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册