Hi,
I am using CKEditor 4 with inline editing.
I want to set custom width and height to the CKEditor toolbar that appears.
I looked around and not found a solution
Any Ideas?
Or inline editing doesnt support custom width and height?
My config.js below
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function (config) {
config.removePlugins = 'bidi,image,forms,adobeair,devtools,find,maximize,a11yhelp,about,divarea,liststyle,tabletools,tableresize,contextmenu,codemirror,docprops,preview,smiley,sourcearea,save,flash,iframe,tabletools,templates,showblocks,newpage,language,print,div';
};
CKEDITOR.plugins.add('blockimagepaste', {
init: function (editor) {
function replaceImgText(html) {
var ret = html.replace(/<img[^>]*src="data:image\/(bmp|dds|gif|jpg|jpeg|png|psd|pspimage|tga|thm|tif|tiff|yuv|ai|eps|ps|svg);base64,.*?"[^>]*>/gi,
function (img) {
alert("KO");
return '';
});
return ret;
}
function chkImg() {
if (editor.readOnly) {
return;
}
setTimeout(function () {
editor.document.$.body.innerHTML = replaceImgText(editor.document.$.body.innerHTML);
}, 100);
}
editor.on('contentDom', function () {
editor.document.on('drop', chkImg);
editor.document.getBody().on('drop', chkImg);
editor.document.on('paste', function (e) { chkImg(editor); });
editor.document.getBody().on('paste', function (e) { chkImg(editor); });
});
} // Init
});