Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Text in WYSIWYG Email Content editor disappears after switching Content type #56

Closed
konyashkina opened this issue Sep 21, 2021 · 2 comments
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@konyashkina
Copy link

(After testing Email sending model element #6 )

BPM Send Email Task in Modeler:
All typed text in WYSIWYG Email Content editor disappears after switching Content type from HTML to Text and vise versa.
It can be really annoying for users.

Tested on
Jmix version: 1.1.0-SNAPSHOT
Jmix Studio plugin version: 1.1.SNAPSHOT3528-212
IntelliJ version: IntelliJ IDEA 2021.2.1 (Ultimate Edition)

Pre-conditions: BPM and Email addons are installed.

Case 1

Steps to reproduce:

  1. Run Jmix application and open Modeler to edit BPM process.
  2. Create 1 task with type = Send Email Task.
  3. Go to Details > Content type. Click an icon on the right
    bpm-edit-icon
    to start edit Content.
  4. ('Email Content edit' WYSIWYG window appears. Content type is HTML by default). Type some letters there.
  5. Change Content type to Text.

Expected result:
Content type is Text and the content already typed by user is shown as text below.

Actual result:
Content type is Text, but all typed text disappears from this field.

Case 2

Steps:

  1. Set Content type as Text in the 'Email Content edit' WYSIWYG window and type some letters there.
  2. Change Content type to HTML.

Expected result:
Content type is HTML and the content already typed by user is shown as text below.

Actual result:
Content type is HTML, but all typed text disappears from this field.

@konyashkina konyashkina added the type: bug Something isn't working label Sep 21, 2021
@konyashkina konyashkina changed the title All typed text in WYSIWYG Email Content editor disappears after switching Content type Text in WYSIWYG Email Content editor disappears after switching Content type Sep 21, 2021
@gorbunkov
Copy link

We will not implement the HTML <-> Plain text conversion, it's not an easy task and it's not worth doing it here. Instead we may add a confirmation dialog that says that the content will be cleared. The dialog will appear when the user changes the content-type

@gorbunkov gorbunkov added this to the 1.1.0 milestone Sep 27, 2021
@gorbunkov gorbunkov assigned artemy63 and unassigned gorbunkov Sep 27, 2021
@konyashkina
Copy link
Author

Tested on
Jmix version: 1.1.0-SNAPSHOT
Jmix Studio plugin version: 1.1.SNAPSHOT3575-212
IntelliJ version: IntelliJ IDEA 2021.2.2 (Community Edition)

Case 1.
HTML -> Plain text conversion
A confirmation dialog appears and says that the content will be cleared:
content-type-changed

Case 2.
Plain text -> HTML conversion
Works fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants