make image gallery editor component work on ckeditor