Mercurial > libervia-web
diff src/browser/sat_browser/richtext.py @ 616:1c0d5a87c554 frontends_multi_profiles
browser_side: add and use method displayWidget to harmonize widget's management in Libervia (not completely done, there are some issues)
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 11 Feb 2015 11:18:13 +0100 |
parents | b97c85b8a47e |
children | 9092e624bb27 |
line wrap: on
line diff
--- a/src/browser/sat_browser/richtext.py Tue Feb 10 20:52:02 2015 +0100 +++ b/src/browser/sat_browser/richtext.py Wed Feb 11 11:18:13 2015 +0100 @@ -37,7 +37,8 @@ import base_panels import list_manager import html_tools -import panels +import blog +import chat class RichTextEditor(base_panels.BaseTextEditor, FlexTable): @@ -458,11 +459,11 @@ if target == "": return True if target.startswith("@"): - _class = panels.MicroblogPanel + _class = blog.MicroblogPanel target = None if target == "@@" else target[1:] else: - _class = panels.ChatPanel - self.host.getOrCreateLiberviaWidget(_class, {'item': target}) + _class = chat.Chat + self.host.displayWidget(_class, target) return True def syncFromEditor(self, content):