Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if ( tagName == 'img' ) {
- element.isEmpty = 0;
- // Translate smiley (image) to text emotion.
- var src = attributes[ 'data-cke-saved-src' ] || attributes.src, alt = attributes.alt;
- if ( src && src.indexOf( editor.config.smiley_path ) != -1 && alt )
- return new CKEDITOR.htmlParser.text( smileyMap[ alt ] );
- else
- element.children = [ new CKEDITOR.htmlParser.text( src ) ];
- // I ADDED THIS LINE
- attributes.alt && (element.attributes.imagealt = attributes.alt);
- }
- attribute: function( name, val ) {
- if ( name == 'option' ) {
- this.write( '=', val );
- }
- else if (name == 'imagealt') {
- this.write(' alt=', val);
- }
- }
Add Comment
Please, Sign In to add comment