Php 将tabindex和class设置为FCK编辑器
我无法将tabindex设置为FCK编辑器。我正在为fck编辑器使用以下php代码Php 将tabindex和class设置为FCK编辑器,php,javascript,editor,ckeditor,fckeditor,Php,Javascript,Editor,Ckeditor,Fckeditor,我无法将tabindex设置为FCK编辑器。我正在为fck编辑器使用以下php代码 require_once("".$abspath."fckeditor/fckeditor.php"); $oFCKeditor = new FCKeditor("shippinginfo") ; $oFCKeditor->BasePath = "../fckeditor/" ; $oFCKeditor -> Height = '300'; $oFCKeditor -&
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编辑器上课
任何人都有这个想法顺便说一句,我在谷歌上找到了下面的解决方案。。。试试这个
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>' ;
通过文本区域替换方法,我们可以设置
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() ;
}
init值
window.onload=函数()
{
var of ckeditor=新的FCKeditor('product_long_tescription');
oFCKeditor.BasePath=“../fckeditor/”;
oFCKeditor.Height=“300”;
oFCKeditor.Width=“900”;
oFCKeditor.ReplaceTextarea();
}
读一下这个
<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() ;
}