Moonshine-IDE / Super.Human.Portal

Portal interface to show documentation for DominoVagrant and Super.Human.Installer
Other
0 stars 1 forks source link

Trouble with RichText Fields #24

Closed JoelProminic closed 1 year ago

JoelProminic commented 1 year ago

Nadya did some tests editing the Getting Started Documentation documents from Super.Human.Portal, but found that it was too limited for now. Some example problems:

We would like to improve this so that the articles can be edited in Super.Human.Portal only.

JoelProminic commented 1 year ago

Most of the problems came from converting the Jodit HTML to RichText and back. We decided to resolve this by saving the plain HTML in the database - this makes the RichText field unusable in the document, but it will improve the behavior of the editor. I created a Moonshine-Domino-CRUD issue for this.

This is working well in my tests in Moonshine-Domino-CRUD so I pushed an early copy of the JAR here. I need to do a production release if we are satisfied with the behavior.

I tested a variety of formatting options, and these are working well: image

I am seeing some annoying behavior from Jodit though. The cursor is occasionally jumping to the beginning of the field while I type. This is especially frequent when I have inserted an image. I am tagging @piotrzarzycki21 to check if this problem is on our side, or just normal behavior for Jodit.

JoelProminic commented 1 year ago

We discussed this in today's meeting, and this behavior should be sufficient for a release.

Some remaining issues on my side:

JoelProminic commented 1 year ago

I fixed the RichText warning. I need to release Moonshine-Domino-CRUD and deploy the official build, and then we can close this.

Note that we have remaining issues with pasting icons/CSS, and also an issue with the cursor resetting after pasting an image. We'll create separate issues for these.