#4522 (Answering to a question doesn't refresh )

by Luc Saffre · in Developers · assigned to Sharif Mehedi

Résumé

Concepts sous-jacents

Commentaires

  • 4 ans, 5 mois ago by Sharif Mehedi about #4522 (Answering to a question doesn't refresh ) : Solving the issue addressed in my last comment, we are using the lino.modlib.memo.mixins.truncate_comment. But I extended the truncate_comment to have the possibility to have max_p_len=-1 in which case the given text will not be truncated at all and truncate_comment will only remove the formatting.
  • 4 ans, 5 mois ago by Luc Saffre about #4522 (Answering to a question doesn't refresh ) : The editor should accept html text. We have the lino.modlib.memo.mixins.truncate_comment() method, can't we use this here as well?
  • 4 ans, 5 mois ago by Sharif Mehedi about #4522 (Answering to a question doesn't refresh ) : On the other hand we can extract the text in the backend. I am not sure what method would be better! @luc 's opinion will be much appreciated.
  • 4 ans, 5 mois ago by Sharif Mehedi about #4522 (Answering to a question doesn't refresh ) : Primereact editor has the possibility take htmlValue as well as textValue, We need a way to let the editor know what value to take.
  • 4 ans, 5 mois ago by Sharif Mehedi in reply to Luc Saffre about #4522 (Answering to a question doesn't refresh ) : The P tags comes from the text editor in react. And if we add a remark from ExtJS then the text is simple (devoid of any formatting).
  • 4 ans, 5 mois ago by Luc Saffre about #4522 (Answering to a question doesn't refresh ) (1 reply) : Another bug: when i answer with a remark, then both React and ExtJS also render P tags in the preview.