Mercurial > libervia-web
diff browser_side/panels.py @ 401:ea03f898067f
browser_side: LightTextEditor renamed to HTMLTextEditor, new class LightTextEditor based on TextArea
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 13 Mar 2014 13:15:48 +0100 |
parents | 487dd238ab88 |
children | d7e78cb78dfc |
line wrap: on
line diff
--- a/browser_side/panels.py Tue Mar 11 13:53:19 2014 +0100 +++ b/browser_side/panels.py Thu Mar 13 13:15:48 2014 +0100 @@ -44,7 +44,7 @@ from jid import JID from html_tools import html_sanitize -from base_panels import ChatText, OccupantsList, PopupMenuPanel, BaseTextEditor, LightTextEditor +from base_panels import ChatText, OccupantsList, PopupMenuPanel, BaseTextEditor, LightTextEditor, HTMLTextEditor from card_game import CardPanel from radiocol import RadioColPanel from menu import Menu @@ -944,14 +944,14 @@ return False -class StatusPanel(LightTextEditor, ClickHandler): +class StatusPanel(HTMLTextEditor, ClickHandler): EMPTY_STATUS = '<click to set a status>' def __init__(self, host, status=''): self.host = host modifiedCb = lambda content: self.host.bridge.call('setStatus', None, self.host.status_panel.presence, content['text']) or True - LightTextEditor.__init__(self, {'text': status}, modifiedCb, None, single_line=True) + HTMLTextEditor.__init__(self, {'text': status}, modifiedCb, None, single_line=True) self.edit(False) self.setStyleName('statusPanel') ClickHandler.__init__(self) @@ -968,7 +968,7 @@ return content def getContent(self): - return self.__cleanContent(LightTextEditor.getContent(self)) + return self.__cleanContent(HTMLTextEditor.getContent(self)) def setContent(self, content): content = self.__cleanContent(content)