comparison browser_side/richtext.py @ 395:98cd5387d291

browser_side: new microblogs are not using the rich text editor by default: - a button allows to switch from raw to rich text, and vice versa - raw text microblogs are not submitted anymore when the focus is lost, only when <enter> is pressed
author souliane <souliane@mailoo.org>
date Mon, 10 Mar 2014 22:39:26 +0100
parents 564208366dd6
children 487dd238ab88
comparison
equal deleted inserted replaced
394:ee61b0765d6c 395:98cd5387d291
283 """ 283 """
284 if not (edit and abort): 284 if not (edit and abort):
285 self.refresh(edit) # not when we are asking for a confirmation 285 self.refresh(edit) # not when we are asking for a confirmation
286 BaseTextEditor.edit(self, edit, abort, sync) # after the UI has been refreshed 286 BaseTextEditor.edit(self, edit, abort, sync) # after the UI has been refreshed
287 if (edit and abort): 287 if (edit and abort):
288 return # self.avortEdition is called by BaseTextEditor.edit 288 return # self.abortEdition is called by BaseTextEditor.edit
289 self.setWysiwyg(False, init=True) # after BaseTextEditor (it affects self.getContent) 289 self.setWysiwyg(False, init=True) # after BaseTextEditor (it affects self.getContent)
290 if sync: 290 if sync:
291 return 291 return
292 # the following must NOT be done at each UI refresh! 292 # the following must NOT be done at each UI refresh!
293 content = self._original_content 293 content = self._original_content