Plugin pour lib ckeditor Imagebrowser
http://ckeditor.com/addon/imagebrowser testé en 4.3, licence BSD
https://github.com/spantaleev/ckeditor-imagebrowser
Conf
Le dl et extraire dans le dossier plugin de la librairy ckeditor. Lire le README.rst
Conf de ckeditor (sites/all/libraries/ckeditor/config.js) ajouter au milieu:
config.extraPlugins = 'imagebrowser';
config.imageBrowser_listUrl = "/path/to/images_list.json";
imageBrowser_listUrl pointe vers URL qui liste les images du srv au format JSON. Doit etre en absolu.
Ex avec 2 dossiers qui ont chacun 2 images :
[
{
"image": "/image1_200x150.jpg",
"thumb": "/image1_thumb.jpg",
"folder": "Small"
},
{
"image": "/image2_200x150.jpg",
"thumb": "/image2_thumb.jpg",
"folder": "Small"
},
{
"image": "/image1_full.jpg",
"thumb": "/image1_thumb.jpg",
"folder": "Large"
},
{
"image": "/image2_full.jpg",
"thumb": "/image2_thumb.jpg",
"folder": "Large"
}
]
thumb
est optionnel (si abs, c image qui est pris) - folder aussi