将 tabindex 和 class 设置为 FCK 编辑器

发布于 2024-10-20 12:53:11 字数 535 浏览 5 评论 0原文

我在将 tabindex 设置为 FCK editor 时遇到问题。我正在使用以下 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() ;

,我也喜欢 class 到 fck 编辑器,

任何人都有这个想法

i have problem to set tabindex to FCK editor . i am using following php code for fck editor

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

and i also like to class to fck editor

any one have the idea

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

靖瑶 2024-10-27 12:53:11

顺便说一句,我谷歌并找到下面的解决方案...尝试

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

参考

by the way i google and find below solution... try this

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

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

reference

憧憬巴黎街头的黎明 2024-10-27 12:53:11

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

}

by textarea replacing method we can set tabindex. so it works thanks !

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

}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文