Html editor improvements (new toolbar type)

This commit is contained in:
RainLoop Team 2014-02-12 04:08:31 +04:00
parent 96b37227b2
commit 8da34e8d5f
105 changed files with 1423 additions and 1545 deletions

View file

@ -83,14 +83,6 @@ SettingsIdentities.prototype.deleteIdentity = function (oIdentityToRemove)
}
};
SettingsIdentities.prototype.onHide = function ()
{
if (this.editor)
{
this.editor.hideEditorToolbar();
}
};
SettingsIdentities.prototype.onFocus = function ()
{
if (!this.editor && this.signatureDom())
@ -100,7 +92,7 @@ SettingsIdentities.prototype.onFocus = function ()
sSignature = RL.data().signature()
;
this.editor = new HtmlEditorWrapper(self.signatureDom(), function () {
this.editor = new NewHtmlEditorWrapper(self.signatureDom(), function () {
RL.data().signature(
(self.editor.isHtml() ? ':HTML:' : '') + self.editor.getData()
);
@ -114,15 +106,6 @@ SettingsIdentities.prototype.onFocus = function ()
self.editor.setPlain(sSignature, false);
}
});
this.editor.addInputFormatStyle();
Utils.initOnStartOrLangChange(function () {
self.editor.setupLang(
Utils.i18n('EDITOR/TEXT_SWITCHER_RICH_FORMATTING'),
Utils.i18n('EDITOR/TEXT_SWITCHER_PLAINT_TEXT')
);
});
}
};

View file

@ -23,14 +23,6 @@ function SettingsIdentity()
Utils.addSettingsViewModel(SettingsIdentity, 'SettingsIdentity', 'SETTINGS_LABELS/LABEL_IDENTITY_NAME', 'identity');
SettingsIdentity.prototype.onHide = function ()
{
if (this.editor)
{
this.editor.hideEditorToolbar();
}
};
SettingsIdentity.prototype.onFocus = function ()
{
if (!this.editor && this.signatureDom())
@ -40,7 +32,7 @@ SettingsIdentity.prototype.onFocus = function ()
sSignature = RL.data().signature()
;
this.editor = new HtmlEditorWrapper(self.signatureDom(), function () {
this.editor = new NewHtmlEditorWrapper(self.signatureDom(), function () {
RL.data().signature(
(self.editor.isHtml() ? ':HTML:' : '') + self.editor.getData()
);
@ -54,15 +46,6 @@ SettingsIdentity.prototype.onFocus = function ()
self.editor.setPlain(sSignature, false);
}
});
this.editor.addInputFormatStyle();
Utils.initOnStartOrLangChange(function () {
self.editor.setupLang(
Utils.i18n('EDITOR/TEXT_SWITCHER_RICH_FORMATTING'),
Utils.i18n('EDITOR/TEXT_SWITCHER_PLAINT_TEXT')
);
});
}
};