Mediawiki-wysiwyg / WYSIWYG-CKeditor

Mediawiki extension: WYSIWYG. Includes extension and other components required by it
GNU General Public License v3.0
67 stars 34 forks source link

Image name added as image caption automatically #120

Open jkast90 opened 5 years ago

jkast90 commented 5 years ago

Line 2729 of /ckeditor/plugins/mediawiki/plugin.js

I changed if ( imgCaption.length > 0 ) { to if ( imgCaption.length > 0 && imgName != imgCaption) { in order for it not to add the image name as the caption if it was blank before. If you add a custom caption, it still works

stopspazzing commented 5 years ago

Oh nice. I'll create the pull request.