Module CKEditor Widgets

ckeditor_widgets s'intègre à la barre d'outil de ckeditorhttps://www.drupal.org/project/ckeditor_widgets pour drupal 7 seul

Requiert: ckeditor, le plugin widget (il y est par défaut), un thème qui ajoute la librairie Bootstrap CSS (Bootstrap, Radix ou Kalatheme sont de bons thèmes de base).

voir aussi http://albatrossdigital.com/node/41

Install (du project officiel)

  • Editer le profile CKEDitor (ex /admin/config/content/ckeditor/edit/Basic):
    • Dans Editor Appearance / Plugins pour cocher "Plugin to add widgets based on Bootstrap elements, Plugin to add common widgets, Plugin for adding an Insert Template dropdown menu".
    • Dans Advanced content filter / sous Extra allowed content : ajouter :
      p a div span h2 h3 h4 h5 h6 section article iframe object embed strong b i em cite pre blockquote small sub sup code ul ol li dl dt dd table thead tbody th tr td img caption mediawrapper br[href,src,target,width,height,colspan,span,alt,name,title,class,id,data-options]{text-align,float,margin}(*);
  • Aller dans Configuration > Content Authoring > CKEditor Widgets (/admin/config/content/ckeditor_widgets). Cocher les cases sous "Enabled dropdown buttons".
  • Editer les Text Format (ex: /admin/config/content/formats/filtered_html). Il faut permettre tous les élément ci dessus. Le module CKEditor Filter est recommandé (créé à cet effet).