Skip to content

Commit

Permalink
Update HTML signature if changing identities.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Oct 25, 2013
1 parent cf0cc20 commit 5f224b0
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions imp/js/compose-base.js
Expand Up @@ -78,11 +78,15 @@ var ImpComposeBase = {
}.bind(this));
}

config = Object.clone(IMP.ckeditor_config);
config.removePlugins = 'toolbar,elementspath';
config.contentsCss = [ CKEDITOR.basePath + 'contents.css', CKEDITOR.basePath + 'nomargin.css' ];
config.height = $('signatureBorder').getLayout().get('height');
this.rte = CKEDITOR.replace('signature', config);
if (this.rte) {
this.rte.setData($F('signature'));
} else {
config = Object.clone(IMP.ckeditor_config);
config.removePlugins = 'toolbar,elementspath';
config.contentsCss = [ CKEDITOR.basePath + 'contents.css', CKEDITOR.basePath + 'nomargin.css' ];
config.height = ($('signatureBorder') ? $('signatureBorder') : $('signature')).getLayout().get('height');
this.rte = CKEDITOR.replace('signature', config);
}
} else {
if (this.rte) {
this.rte.destroy(true);
Expand Down

0 comments on commit 5f224b0

Please sign in to comment.