Mercurial > libervia-web
diff browser_side/richtext.py @ 412:9977de10b7da
browser_side: editors do not listen for <escape> + display WYSIWIG in upper case
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 19 Mar 2014 20:27:46 +0100 |
parents | c393e7dc9ae6 |
children | 19bd203daa27 |
line wrap: on
line diff
--- a/browser_side/richtext.py Tue Mar 18 19:18:16 2014 +0100 +++ b/browser_side/richtext.py Wed Mar 19 20:27:46 2014 +0100 @@ -57,7 +57,7 @@ self.__readOptions(options) self.style = {'main': 'richTextEditor', 'title': 'richTextTitle', - 'toolbar': 'richTextToolbaar', + 'toolbar': 'richTextToolbar', 'textarea': 'richTextArea'} if isinstance(style, dict): self.style.update(style) @@ -154,7 +154,7 @@ self.toolbar.addStyleName(self.style['toolbar']) for key in composition.RICH_SYNTAXES[syntax].keys(): self.addToolbarButton(syntax, key) - self.wysiwyg_button = CheckBox('Wysiwyg edition') + self.wysiwyg_button = CheckBox(_('WYSIWYG edition')) wysiywgCb = lambda sender: self.setWysiwyg(sender.getChecked()) self.wysiwyg_button.addClickListener(wysiywgCb) self.toolbar.add(self.wysiwyg_button)