将tabindex和类设置为FCK编辑器
问题描述:
我有问题要设置tabindex至FCK编辑器。我用下面的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编辑
任何一个有想法
答
通过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() ;
}
答
由我谷歌和在下面找到解决的办法。 ..尝试这个
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 = '' ;
FCKEditor版本?? – diEcho 2011-03-04 07:07:57
阅读此[文章](http://www.electrictoolbox.com/fckeditor-custom-styles/) – diEcho 2011-03-04 07:11:31