Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

PHP 

TinyMCE and images

Hi guys, this thread isn't going to teach you how to code or anything, I just had a problem and just wanted to share it because I think it will be useful.
So, I had a problem with tinymce, I wanted to add a class to all images inserted in the editor to add
Code
class="img-responsive"

All you need to do is to add this to your tinymce:
Code
image_class_list: [
  {title: 'Responsive', value: 'img-responsive'},
  {title: 'None', value: ''}
  ]

Note: I put
Code
{title: 'Responsive', value: 'img-responsive'},
in first so it is set as default.

[Image: d5658ea9d8.png]
[Image: 2996714c97.png]

Ho, and cheers' !
[Image: vibesignature.gif]
“Whatever Your Mind Can Conceive and Believe, It Can Achieve.” – Napoleon Hill