Modify the configuration of ckeditor 4
add links, headers and images
This commit is contained in:
committed by
Javi Martín
parent
8e68f4bbd0
commit
88f0f14eab
@@ -5,34 +5,13 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
|
||||
|
||||
CKEDITOR.editorConfig = function( config )
|
||||
{
|
||||
// Define changes to default configuration here. For example:
|
||||
// config.language = 'fr';
|
||||
// config.uiColor = '#AADC6E';
|
||||
|
||||
/* Filebrowser routes */
|
||||
// The location of an external file browser, that should be launched when "Browse Server" button is pressed.
|
||||
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 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";
|
||||
|
||||
config.allowedContent = true;
|
||||
|
||||
// Rails CSRF token
|
||||
config.filebrowserParams = function(){
|
||||
var csrf_token, csrf_param, meta,
|
||||
@@ -109,6 +88,9 @@ CKEDITOR.editorConfig = function( config )
|
||||
|
||||
config.toolbar_mini = [
|
||||
{ name: 'paragraph', groups: [ 'list' ], items: [ 'NumberedList', 'BulletedList' ] },
|
||||
{ name: 'links', items: [ 'Link', 'Unlink' ] },
|
||||
{ name: 'styles', items: [ 'Format' ] },
|
||||
{ name: 'insert', items: [ 'Image' ] },
|
||||
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ], items: [ 'Bold', 'Italic', 'Underline', 'Strike' ] }
|
||||
];
|
||||
config.toolbar = "mini";
|
||||
|
||||
Reference in New Issue
Block a user