Jump to content
Larry Ullman's Book Forums

Edward
 Share

Recommended Posts

I was wondering if anyone knew how to diable image pasting into a CKEditor What you see is what you get Editor. I couldn't find anything online on how to directly do this.

 

I managed to remove all plugins i didn't want in the config.js file

 

/**
 * Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
 * 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';
    config.skin = 'moono-light';
	
	// Remove multiple plugins.
	config.removePlugins = 'about,image,imagepaste,div,flash,forms,horizontalrule,iframe,line,link,pagebreak,table,tabletools,save,scayt,templates';
};


 

Link to comment
Share on other sites

Offhand, I don't know, but I may not be entirely clear what you mean by "image pasting". If you're still having problems with this, let me know (and clarify "image pasting") and I'll see what I can do. 

Link to comment
Share on other sites

Well basically I copy an image from my computer by pressing ctrl + c then click on the CKEditor and press ctrl + v, the image is then posted into the editor. I looked at the HTML source and it should some base64 encoding for the whole image, the image was perfectly viewable now in the editor.

Link to comment
Share on other sites

 Share

×
×
  • Create New...