установить tabindex и класс для редактора FCK - PullRequest
0 голосов
/ 04 марта 2011

У меня проблема с установкой 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() ;

и мне также нравится класс в fck editor

у кого есть идея

Ответы [ 2 ]

0 голосов
/ 11 марта 2011

методом замены 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 голосов
/ 04 марта 2011

Кстати, я 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>' ;

добавить класс

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

ссылка

...