@ -243,6 +243,7 @@ K.options = {
shadowMode : true ,
loadStyleMode : true ,
basePath : K . basePath ,
emotionsBasePath : 'http://forge.trustie.net' , //TODO
themesPath : K . basePath + 'themes/' ,
langPath : K . basePath + 'lang/' ,
pluginsPath : K . basePath + 'plugins/' ,
@ -5459,6 +5460,7 @@ function _editor(options) {
_instances = [ ] ;
function _create ( expr , options ) {
options = options || { } ;
options . emotionsBasePath = _undef ( options . emotionsBasePath , 'http://forge.trustie.net' ) // TODO
options . basePath = _undef ( options . basePath , K . basePath ) ;
options . themesPath = _undef ( options . themesPath , options . basePath + 'themes/' ) ;
options . langPath = _undef ( options . langPath , options . basePath + 'lang/' ) ;
@ -5623,7 +5625,9 @@ _plugin('core', function(K) {
url : K . addParam ( '/kindeditor/upload' , 'dir=image' ) ,
afterUpload : function ( data ) {
if ( data . error === 0 ) {
var url = K . formatUrl ( data . url , 'absolute' ) ;
var url = data . url //K.formatUrl(data.url, 'absolute');
// console.log(url)
self . exec ( 'insertimage' , url , 'image' , '' , '' , '1' , '' ) ;
//self.exec('insertimage', url, 'image','','','1','left');
//self.insertHtml('<img src="'+url+'"/>');