﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
10720	link plugin, scayt spellcker with divarea editor not working	monk		"I am facing the problem with inserting link in editor, Once I initialize the link plugin divarea doesn't work can any one suggest me
here is my custom config file


CKEDITOR.editorConfig = function(config)
{
   

    config.toolbar = 'MyToolbar';
     
    config.toolbar_MyToolbar =
    [
        { name: 'document', items : [ 'Source','Preview' ] },
        { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
        { name: 'editing', items : [ 'Find','Replace','-','SelectAll','-'] },
        { name: 'insert', items : [ 'Image','Table','HorizontalRule','Smiley','PageBreak'
                  ] },
    
        { name: 'styles', items : [ 'Font','FontSize','TextColor', 'BGColor' ] },
         '/',
        { name: 'basicstyles', items : [ 'Bold','Italic','Strike','-','RemoveFormat' ] },
        { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote' ] },
     
        { name: 'tools', items : [ 'Maximize','-'] },  ['Link', 'Unlink']
    ];
    config.resize_enabled = false;

   
    config.font_names = 'Arial;Avante Garde;Bodoni;Book Antiqua;Bookman Old Style;Calibri;Calibri Light;Cambria;Candara;Century Gothic;Comic Sans MS;Courier New;Garamond;Geneva;Georgia;Helvetica;Lucida Sans Unicode;Palatino;Palatino Linotype;Rockwell;Tahoma;Times New Roman;Trebuchet MS;Verdana';

 
  
  config.toolbarCanCollapse = true;
  config.startupFocus = true;
  config.filebrowserBrowseUrl = ""/ckeditor/attachment_files"";

  // The location of an external file browser, that should be launched when ""Browse Server"" button is pressed in the Flash dialog.
  config.filebrowserFlashBrowseUrl = ""/ckeditor/attachment_files"";

  // The location of a script that handles file uploads in the Flash dialog.
  config.filebrowserFlashUploadUrl = ""/ckeditor/attachment_files"";

  // The location of an external file browser, that should be launched when ""Browse Server"" button is pressed in the Link tab of Image dialog.
  config.filebrowserImageBrowseLinkUrl = ""/ckeditor/pictures"";

  // The location of an external file browser, that should be config.extraPlugins = 'divarea';launched when ""Browse Server"" button is pressed in the Image dialog.
  config.filebrowserImageBrowseUrl = ""/ckeditor/pictures"";

  // The location of a script that handles file uploads in the Image dialog.
  config.filebrowserImageUploadUrl = ""/ckeditor/pictures"";

  // The location of a script that handles file uploads.
  config.filebrowserUploadUrl = ""/ckeditor/attachment_files"";

  // Rails CSRF token
  config.height = '230px';
   // config.width = '800px';


  config.skin = 'kama';


  //  config.enterMode = CKEDITOR.ENTER_BR;
  //   config.extraPlugins = 'scayt';
   config.enterMode = CKEDITOR.ENTER_DIV;
  
    config.extraPlugins = 'divarea';
    config.removePlugins = 'elementspath, magicline';
    config.scayt_customerid = 'my_licence key';
    config.scayt_autoStartup = true;
    config.disableNativeSpellChecker = true;
   config.extraPlugins = 'scayt';
    config.extraPlugins = 'link'

    config.filebrowserParams = function(){
    var csrf_token = jQuery('meta[name=csrf-token]').attr('content');
        csrf_param = jQuery('meta[name=csrf-param]').attr('content');
        params = new Object();

    if (csrf_param !== undefined && csrf_token !== undefined) {
      params[csrf_param] = csrf_token;
    }

    return params;
  };

  config.addQueryString = function( url, params ){
    var queryString = [];

    if ( !params )
      return url;
    else
    {
      for ( var i in params )
        queryString.push( i + ""="" + encodeURIComponent( params[ i ] ) );
    }

    return url + ( ( url.indexOf( ""?"" ) != -1 ) ? ""&"" : ""?"" ) + queryString.join( ""&"" );
  };


CKEDITOR.on( 'dialogDefinition', function( ev ){
    // Take the dialog name and its definition from the event data.
    var dialogName = ev.data.name;
    var dialogDefinition = ev.data.definition;
    var content, upload;
    dialogDefinition.removeContents( 'advanced' );
 if (dialogName === 'link') {
         dialogDefinition.minHeight = 30;

        // remove the unwanted tabs
        dialogDefinition.removeContents('advanced');
        dialogDefinition.removeContents('target');
        dialogDefinition.removeContents('upload');
  var infoTab = dialogDefinition.getContents( 'info' );

         // Remove unnecessary widgets from the 'Link Info' tab.
         infoTab.remove( 'linkType');
         infoTab.remove( 'browse');
   }

 if ( dialogName == 'image' ) {
      content = (dialogDefinition.getContents('Upload') || dialogDefinition.getContents('upload'));
      upload = (content == null ? null : content.get('upload'));

      if (upload && upload.filebrowser['params'] == null) {
        upload.filebrowser['params'] = config.filebrowserParams();
        upload.action = config.addQueryString(upload.action, upload.filebrowser['params']);
      }
    }
  });




}


I have already purchased Ckeditor and spellchecker as you type please let me know how to integrate link plugin to work.

Thanks in Advance,
  

    "	Bug	closed	Normal		General	4.0.1	invalid		
