Needs work
Project:
CKEditor 4 - WYSIWYG HTML editor
Version:
7.x-1.6
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2012 at 22:48 UTC
Updated:
13 Feb 2017 at 18:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
johannez commentedHello again,
here is my patch. It does the change in the ckeditor module (7.x-1.6) and the media module (1.x-dev 2012-Mar-08).
I hope somebody will find this useful and you will work towards a better solution in the future.
Cheers
Comment #2
LTech commenteddoes this patch work with media 7x1.2?
Comment #3
kevinchampion commentedAttached patch takes the relevant addition in library.js and applies it to 7.x-1.x head, which seems to work for me.
Of note, the alt attribute is the only one I found missing. The title attribute was applied fine before this patch. As a result, I'm not sure if this is the most appropriate place and method for this fix.
Comment #4
wwalc commentedComment #5
miroslavbanov commentedPatch #3 work for me.
Add one space at the statrt of comment:
// commentDo we need to delete the "alt" and "title" so they are not made as classes? I think they should be left as is.
Comment #6
miroslavbanov commentedComment #7
barancekk commentedI tested #3 with media 7.x-2.0-alpha3 and it's not working for me. When inserting image with media popup window from library this provide fields to alter alt and title values. After changing the values using 7.x-2.0-alpha3 media and submitting the media popup these are present in addImageAttributes in addition variable which is used in patch from #3 but the values are now in additional['field_file_image_alt_text[und][0][value]'] for alt text and additional['field_file_image_title_text[und][0][value]'].
I created new patch reflecting this changes after which correct title and alt text values are used for inserted image.
Comment #8
wingmanjd commentedPatch from #7 no longer applies to 7.x-1.7 as media/library.js has been removed.