Is there a way to add the title attibute to CKEditor images? I'm using v4.1.2 and CKEditor is removing it automatically each time it's added from the HTML source view. I haven't found anything about this!
You got to define config.extraAllowedContent = 'img[title]'
if you want title
attribute to be accepted into editor contents (see: official guide).
I have ultimate solution for this issue..
1) Open this file: ckeditor\plugins\image2\plugin.js At the line number 343 (in my case) add below code title: this.data.alt just below "alt: this.data.alt," and enjoy..
来源:https://stackoverflow.com/questions/20671519/how-to-add-title-attribute-at-ckeditor-images