SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru whisher's Avatar
    Join Date
    May 2006
    Location
    Kakiland
    Posts
    732
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    jquery.FCKEditor configuration

    Hi.
    Is there a way to set my parameters
    in fck jquery plug-in like in the old fashion way ?

    Code JavaScript:
    <script type="text/javascript">
    window.onload = function(){
    	var oFCKeditor = new FCKeditor( 'wCmsFkcTextarea' ) ;
    	// PATH 
    	var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('/'		)) ;
    	oFCKeditor.BasePath = sBasePath+"/fckeditor/";
    	// LANG 
    	oFCKeditor.Config["AutoDetectLanguage"] = false ;
    	oFCKeditor.Config["DefaultLanguage"]    = 'it';
    	// DIMENSION 
    	oFCKeditor.Width= '500';
    	// XHTML 
    	oFCKeditor.Config['CustomConfigurationsPath'] = oFCKeditor.BasePath + '_samples/html	/assets/sample14.config.js' ;
    	// TOOLBAR
    	oFCKeditor.ToolbarSet = 'Basic' ;
    	oFCKeditor.ReplaceTextarea();
    }
     
      $(function() {
      	/*
      	var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('/'		)) ;
     
      		$('textarea.wCmsFkcTextarea').fck({
      			path: sBasePath + "/fckeditor/",
      			toolbar:'Basic', 
    			width:500,
    			AutoDetectLanguage:false,
    			  DefaultLanguage:'it'
    			  });
    			  */
            $("input.file_1").filestyle({ 
              image: "choose-file.gif",
              imageheight : 22,
              imagewidth : 82,
              width : 100
          });
    });
    </script>

    Bye.

  2. #2
    SitePoint Guru whisher's Avatar
    Join Date
    May 2006
    Location
    Kakiland
    Posts
    732
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code JavaScript:
    	$('textarea.wCmsFkcTextarea').fck({
      			path: sBasePath + "/fckeditor/",
      			toolbar:'Basic', 
    			width:500,
    			config:{
    				AutoDetectLanguage:false,
    			  	DefaultLanguage:'it',
    				CustomConfigurationsPath:sBasePath +  '/fckeditor/_samples/html/assets/sample14	.config.js'
    				}
    			  });

    Is there a better way ?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •