各位大哥好,我现在用到了FCKeditor2编辑内容,数据库允许的字数是varchar8000,现在的问题是如何让内容超过数据库里的设定置时,当点保存时给出提示???编辑器里的内容有可能是汉字,英文,数字,(或如果随便复制一个网页的内容)等等的组合内容,怎么让它在正常的情况下才能保存,否则提示出错,谢谢!~像哪些论坛里用到FCKeditor时,所输入内容大于数据库里的设置时,怎么实现的提示?

解决方案 »

  1.   

    var FCKeditor = function( instanceName, width, height, toolbarSet, value )
    {
    // Properties
    this.InstanceName = instanceName ;
    this.Width = width || '100%' ;
    this.Height = height || '200' ;
    this.ToolbarSet = toolbarSet || 'Default' ;
    this.Value = value || '' ;
    this.BasePath = '/fckeditor/' ;
    this.CheckBrowser = true ;
    this.DisplayErrors = true ;
    this.EnableSafari = false ; // This is a temporary property, while Safari support is under development.
    this.EnableOpera = false ; // This is a temporary property, while Opera support is under development.