我有将 tabindex 设置为 FCK编辑器的问题。我正在使用以下PHP代码进行fck编辑器
require_once("".$abspath."fckeditor/fckeditor.php");
$oFCKeditor = new FCKeditor("shippinginfo") ;
$oFCKeditor->BasePath = "../fckeditor/" ;
$oFCKeditor -> Height = '300';
$oFCKeditor -> Width = '900';
$oFCKeditor->Value = stripslashes(str_replace("\\","",$product_shippinginfo));
$oFCKeditor->Create() ;
我也喜欢类到fck编辑器
任何人都有这个想法
答案 0 :(得分:0)
通过我google的方式,找到下面的解决方案...试试这个
open file: fckeditor.js
find there a string:
return '<iframe id="' + this.InstanceName + '___Frame" src="' + sLink + '" width="' + this.Width + '" height="' + this.Height + '" frameborder="0" scrolling="no" tabindex=4></iframe>' ;
添加Class
Find these lines in FCKedotor's confing file, fckconfig,js
// This will be applied to the body element of the editor
FCKConfig.BodyId = '' ;
FCKConfig.BodyClass = '' ;
答案 1 :(得分:0)
通过textarea替换方法,我们可以设置tabindex
。所以它的确有效!
<textarea name="product_long_tescription" id="product_long_tescription" tabindex="4" class="fillbymaster" >init value</textarea>
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'product_long_tescription' ) ;
oFCKeditor.BasePath = "../fckeditor/" ;
oFCKeditor.Height = "300" ;
oFCKeditor.Width = "900";
oFCKeditor.ReplaceTextarea() ;
}