Edward Posted April 3, 2013 Share Posted April 3, 2013 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 More sharing options...
Larry Posted April 6, 2013 Share Posted April 6, 2013 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 More sharing options...
Edward Posted April 6, 2013 Author Share Posted April 6, 2013 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 More sharing options...
Larry Posted April 12, 2013 Share Posted April 12, 2013 I see. Okay, that's a new one to me. My simple answer would be: don't do that! But I don't know if there's a CKEditor prevention of that. Link to comment Share on other sites More sharing options...
Antonio Conte Posted April 14, 2013 Share Posted April 14, 2013 From what I can remember, can't you identify base64 by a pattern? I think the ending always have to be the same or something like that. It should be possible to prevent that way. Link to comment Share on other sites More sharing options...
Recommended Posts