Caumons
Caumons

Reputation: 9585

How to add title attribute at CKEditor images

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!

Upvotes: 2

Views: 4568

Answers (2)

Ashu
Ashu

Reputation: 41

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..

Upvotes: 0

oleq
oleq

Reputation: 15895

You got to define config.extraAllowedContent = 'img[title]' if you want title attribute to be accepted into editor contents (see: official guide).

Upvotes: 2

Related Questions