外部画像のみを挿入するカスタム画像プラグインを作成しました。しかし、デフォルトの画像プラグインを無効にすると、img タグがフォームに表示されません。なんで ?
これは私のプラグインです:
CKEDITOR.plugins.add( 'img',
{
init: function( editor )
{
editor.addCommand( 'insertImg',
{
exec : function( editor )
{
var imgurl=prompt("Insert url image");
editor.insertHtml('<img src="'+imgurl+'" />');
}
});
editor.ui.addButton( 'img',
{
label: 'Insert img',
command: 'insertImg',
icon: this.path + 'images/aaa.png'
} );
}
} );