提交 3a7538a8 编写于 作者: C Catouse

* fix conflict between table tab key and transferTab option.

上级 40c12868
/*******************************************************************************
/******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2013 kindsoft.net
*
......@@ -7,6 +7,9 @@
* @licence http://www.kindsoft.net/license.php
* @version 4.1.9 (2013-10-08)
*******************************************************************************/
/*! KindEditor Copyright (C) kindsoft.net, Licence: http://kindeditor.net/license.php */
(function(window, undefined) {
if(window.KindEditor) {
return;
......@@ -10017,6 +10020,7 @@ KindEditor.plugin('zui', function(K) {
self.afterTab(function() {
var $editor = $(self.edit.srcElement[0]);
var $next = $editor.next(nextFormControl);
if(!$next.length) $next = $editor.next().next(nextFormControl);
if(!$next.length) $next = $editor.parent().next().find(nextFormControl);
if(!$next.length) $next = $editor.parent().parent().next().find(nextFormControl);
$next = $next.first();
......@@ -11332,6 +11336,7 @@ KindEditor.plugin('table', function (K) {
};
var $selectedCell = $(selectedCell.get(0));
if ($selectedCell.length) {
self.focus();
if (!selectNextCell($selectedCell)) {
self.plugin.table.rowinsertbelow();
selectNextCell($selectedCell);
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -15,8 +15,11 @@
<div class="conatiner" id="contextmenuExample">
<h1>KindEditor 功能测试</h1>
<div class="row">
<div class="col-md-7"><textarea id="content" name="content" class="form-control kindeditor"
style="height:500px;">Hello, world!</textarea></div>
<div class="col-md-7">
<textarea id="content" name="content" class="form-control kindeditor" style="height:500px;">Hello, world!</textarea>
<br>
<textarea id="content2" name="content2" class="form-control" style="height:100px;">Hello, world!</textarea>
</div>
<div class="col-md-5">
<div class="article-content" style="padding: 0">
<strong>KindEditor 在 ZUI 1.9.1 中的更新</strong>
......@@ -86,7 +89,6 @@
<li>
<p>修复 了无法通过 <code>themeType</code> 选项指定主题样式表的问题;</p>
</li>
</ul>
</div>
</div>
......@@ -109,7 +111,8 @@
allowFileManager: true,
bodyClass: 'article-content',
cssPath: '../../dist/css/zui.css',
placeholder: '请输入文章内容\nGood Luck!'
placeholder: '请输入文章内容\nGood Luck!',
transferTab: true,
});
}
});
......
/*******************************************************************************
/******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2013 kindsoft.net
*
......@@ -7,6 +7,9 @@
* @licence http://www.kindsoft.net/license.php
* @version 4.1.9 (2013-10-08)
*******************************************************************************/
/*! KindEditor Copyright (C) kindsoft.net, Licence: http://kindeditor.net/license.php */
(function(window, undefined) {
if(window.KindEditor) {
return;
......
......@@ -1072,6 +1072,7 @@ KindEditor.plugin('table', function (K) {
};
var $selectedCell = $(selectedCell.get(0));
if ($selectedCell.length) {
self.focus();
if (!selectNextCell($selectedCell)) {
self.plugin.table.rowinsertbelow();
selectNextCell($selectedCell);
......
......@@ -45,6 +45,7 @@ KindEditor.plugin('zui', function(K) {
self.afterTab(function() {
var $editor = $(self.edit.srcElement[0]);
var $next = $editor.next(nextFormControl);
if(!$next.length) $next = $editor.next().next(nextFormControl);
if(!$next.length) $next = $editor.parent().next().find(nextFormControl);
if(!$next.length) $next = $editor.parent().parent().next().find(nextFormControl);
$next = $next.first();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册