change class img-responsive/img-fluid - refs #2681

pull/2818/head
Alex Aragón 6 years ago
parent 56545241f5
commit 4a45d14e4c
  1. 2
      main/inc/lib/javascript/ckeditor/plugins/image2_chamilo/dialogs/image2_chamilo.js
  2. 4
      main/inc/lib/javascript/ckeditor/plugins/image2_chamilo/plugin.js

@ -551,7 +551,7 @@ CKEDITOR.dialog.add( 'image2_chamilo', function( editor ) {
img = widget.element.$.firstChild;
}
img.className += ' img-responsive ';
img.className += ' img-fluid ';
widget.setData( 'isResponsive', this.getValue() );
}
}

@ -347,7 +347,7 @@
this.parts.image.setAttributes( {
src: this.data.src,
class: this.data.isResponsive ? 'img-responsive' : '',
class: this.data.isResponsive ? 'img-fluid' : '',
// This internal is required by the editor.
'data-cke-saved-src': this.data.src,
@ -394,7 +394,7 @@
alt: image.getAttribute( 'alt' ) || '',
width: image.getAttribute( 'width' ) || '',
height: image.getAttribute( 'height' ) || '',
isResponsive: !!image.$.className.match(/img-responsive/i),
isResponsive: !!image.$.className.match(/img-fluid/i),
// Lock ratio is on by default (#10833).
lock: this.ready ? helpers.checkHasNaturalRatio( image ) : true,
borderWidth: !this.parts.caption ? image.getStyle('border-width') : '',

Loading…
Cancel
Save