Skip to content

Commit

Permalink
Editor: Add responsive image setting true - refs BT#19292
Browse files Browse the repository at this point in the history
  • Loading branch information
cfasanando committed Oct 26, 2021
1 parent b7fcd77 commit 226664a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -539,9 +539,10 @@ CKEDITOR.dialog.add( 'image2_chamilo', function( editor ) {
id: 'isResponsive',
type: 'checkbox',
label: lang.responsive,
'default' : editor.config.image_responsive != null ? editor.config.image_responsive : false,
requiredContent: features.responsive.requiredContent,
setup: function ( widget ) {
this.setValue( widget.data.isResponsive );
//this.setValue( widget.data.isResponsive );
},
commit: function ( widget ) {
var img = widget;
Expand Down
2 changes: 1 addition & 1 deletion main/install/configuration.dist.php
Expand Up @@ -2001,7 +2001,7 @@
//$_configuration['enable_uploadimage_editor'] = false;

// Ckeditor settings.
//$_configuration['editor_settings'] = ['config' => ['youtube_responsive' => true]];
//$_configuration['editor_settings'] = ['config' => ['youtube_responsive' => true, 'image_responsive' => true]];

// Overwrites the app/config/auth.conf.php settings
//$_configuration['extldap_config'] = ['host' => '', 'port' => ''];
Expand Down

0 comments on commit 226664a

Please sign in to comment.