D14738: Add the markdown entry

Yifei Wu noreply at phabricator.kde.org
Thu Aug 16 18:03:33 BST 2018

kqwyf added a comment.

  Here comes a problem...
  The reason I'd like to make rendered markdown entries uneditable is that, if the user edited a rendered markdown entry, then we could never convert the content (in html) back to markdown.
  To imitate the behaviors of latex entries better, I thought it's a good idea that the cursor can move on the markdown entries while they can't be edited.
  But in worksheettextitem.cpp, line 433-437, it wrote:
    void WorksheetTextItem::keyPressEvent(QKeyEvent *event)
        if (!isEditable())
        // other code
  which means that the cursor can't move on an uneditable entry.
  A compromise solution is to make `MarkdownEntry::wantFocus()` return false when the entry is uneditable. And this will cause the cursor to skip the rendered markdown entries. Is that okay?
  BTW, when loading a rendered markdown entry, the markdown content will be rendered, but the latex formulas will remain in code form (just like the text entries). Is that okay? Or should they be rendered (by saving all the eps files in the archive), too?

  R55 Cantor


To: kqwyf, pino, #cantor, filipesaraiva
Cc: sirgienko, filipesaraiva, pino, asemke, kde-edu, narvaez, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20180816/5970168c/attachment.html>

More information about the kde-edu mailing list