Page 1 of 1

TinyMCE: Image Caption

Posted: Sat Aug 11, 2018 4:51 pm
by designfjord
Hello,

there is a build-in-way to include images with caption in the text.

Code: Select all

tinymce.init({
  selector: "textarea",  // change this value according to your HTML
  plugins: "image",
  menubar: "insert",
  toolbar: "image",
  image_caption: true
});
Can anybody please tell me, WHERE I have to set these image_caption: true?
I've searched the whole cmsimple-installation for the words "caption" or "plugins", but i cannot find the appropriate spot.

Thanks for tipps

Re: TinyMCE: Image Caption

Posted: Sat Aug 11, 2018 7:34 pm
by lck
designfjord wrote:
Sat Aug 11, 2018 4:51 pm
Can anybody please tell me, WHERE I have to set these image_caption: true?
Example: When in your TinyMCE Configuration is set "init_fontawesome.js", insert it in ./plugins/tinymce4/inits/init_fontawesome.js in a new line.

Code: Select all

  image_advtab: true,
  image_title: true,
  image_caption: true, /* <-- NEW Line */
  file_browser_callback: "%FILEBROWSER_CALLBACK%",
Also note the notes on the custom CSS on this page.

Re: TinyMCE: Image Caption

Posted: Sat Aug 11, 2018 8:57 pm
by designfjord
Thanks,
I'll try it