CKEditor - 为<a> element

时间:2015-06-10 12:58:45

标签: jquery ckeditor

I have problem with CKEditor. I tried creating <a href="#"></a> element in CKEditor with advisory title, but I can't do it.

I set this option in modal, tab advenced.

Do you have any idea how to fix this?

This my CKEditor configuration:

CKEDITOR.editorConfig = function( config )
{
    config.toolbar = 'Full_Theme';
    config.toolbar_Full_Theme =
        [
            ['Format','Font','FontSize'],['TextColor'],['BGColor'],
            ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
            ['Bold','Italic','Strike'],
            ['NumberedList','BulletedList'],
            ['Outdent','Indent'],
            '/',
            ['Link','Unlink'],
            ['Image'],['Table'],['HorizontalRule'],['VideoImage'],['Source'],['Maximize'],
            ['Undo','Redo'],
        ];

    config.toolbar = 'Simple_Theme';
    config.toolbar_Simple_Theme =
        [
             ['Maximize'],
             ['Undo','Redo'],
             '/',*/
            ['Format','Font','FontSize'],['TextColor'],['BGColor'],
            ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
            ['Bold','Italic','Strike'],
            ['NumberedList','BulletedList'],
            ['Outdent','Indent'],
            '/',
            ['Link','Unlink'],
            ['Image'],['Table'],['HorizontalRule'],['VideoImage']
        ];
    config.skin = 'kama_theme';

    config.allowedContent = true;

    config.disallowedContent = 'script';

    config.fullPage = true;

    config.extraPlugins = 'floatpanel,video_image,justify,colorbutton,font,colordialog';
    config.resize_enabled = false;
    config.startupShowBorders = false;
    config.font_names = 'Arial/Arial, Helvetica, sans-serif;' +
        'Comic Sans MS/Comic Sans MS, cursive;' +
        'Courier New/Courier New, Courier, monospace;' +
        'Georgia/Georgia, serif;' +
        'Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;' +
        'Tahoma/Tahoma, Geneva, sans-serif;' +
        'Times New Roman/Times New Roman, Times, serif;' +
        'Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;' +
        'Verdana/Verdana, Geneva, sans-serif;' +
        'Calibri (UWAGA czcionka niestandardowa)/Calibri, Arial, Helvetica, sans-serif';
    config.autoParagraph    = false;
    config.enterMode        = CKEDITOR.ENTER_BR;
    config.entities_latin   = false;
    config.fillEmptyBlocks  = false;
    config.filebrowserImageBrowseUrl = '/beta/filemanager/ajax-filemanager-new-window/?type=images';
    config.filebrowserImageUploadUrl = '/beta/filemanager/upload-and-return/?type=images';
    config.filebrowserBrowseUrl      = '/beta/filemanager/ajax-filemanager-new-window/?type=files';
    config.filebrowserUploadUrl      = '/beta/filemanager/upload-and-return/?type=files';
};

0 个答案:

没有答案