2011-03-04 158 views
0

我有问题要设置tabindexFCK编辑器。我用下面的PHP代码FCK编辑将tabindex和类设置为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

FCKEditor版本?? – diEcho 2011-03-04 07:07:57

+1

阅读此[文章](http://www.electrictoolbox.com/fckeditor-custom-styles/) – diEcho 2011-03-04 07:11:31

回答

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() ; 

} 
0

由我谷歌和在下面找到解决的办法。 ..尝试这个

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>' ; 

添加类

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 = '' ; 

reference