TinyMCE: Image Caption

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

Post Reply
designfjord
Posts: 62
Joined: Fri Apr 16, 2010 4:19 pm
Location: Germany/Franconia

TinyMCE: Image Caption

Post by designfjord » Sat Aug 11, 2018 4:51 pm

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
XH 1.4, XH 1.5, RealBlog1.5 | OS: XP Win7 Ubuntu | keep it simple

lck
Posts: 1322
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: TinyMCE: Image Caption

Post by lck » Sat Aug 11, 2018 7:34 pm

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.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

designfjord
Posts: 62
Joined: Fri Apr 16, 2010 4:19 pm
Location: Germany/Franconia

Re: TinyMCE: Image Caption

Post by designfjord » Sat Aug 11, 2018 8:57 pm

Thanks,
I'll try it
XH 1.4, XH 1.5, RealBlog1.5 | OS: XP Win7 Ubuntu | keep it simple

Post Reply