Mercurial > libervia-web
diff browser_side/richtext.py @ 282:ae3ec654836d
browser_side: added blog item modification/deletion
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 10 Dec 2013 09:07:03 +0100 |
parents | 36ce989c73a5 |
children | 05e264e96a1c |
line wrap: on
line diff
--- a/browser_side/richtext.py Mon Dec 09 15:34:03 2013 +0100 +++ b/browser_side/richtext.py Tue Dec 10 09:07:03 2013 +0100 @@ -174,6 +174,11 @@ self.setWidget(offset1 + count, 0, toolbar) count += 1 + @property + def format(self): + """Get the current text format""" + return self._format if hasattr(self, '_format') else None + def addToolbarButton(self, toolbar, _format, key): """Add a button with the defined parameters.""" button = Button('<img src="%s" class="richTextIcon" />' %