UUI icon indicating copy to clipboard operation
UUI copied to clipboard

[RTE] Issues and improvements related to the Rich Text Editor

Open NatalliaAlieva opened this issue 3 years ago • 0 comments

This issue contains bugs (Part 1) and improvements (Part 2).

Part 1 - Bugs

Case №1 - Fixed

Steps to Reproduce

  1. Open https://uui.epam.com/demo?id=RTE
  2. Click in Rich Text Editor area.
  3. Try to find Sticky Toolbar.

Expected Result

Sticky Toolbar should be always be visible even if the editing area is larger than the screen.

Actual Result

Sticky toolbar is located at the bottom of the editing area and isn't visible because the edit area is larger than the screen area.

Case#1 Demo-RTE Sticky Toolbar

Case №2

Description

Text styles from word are not completely copied to RTE.

Steps to Reproduce

  1. Create document in Word.
  2. Write any text with bold, italic and underline text.
  3. Copy the text from word document.
  4. Click in Rich Text Editor area.
  5. Paste the text.
  6. Check the text style.

Expected Result

Text style in the Word and RTE editting area is the same.

Actual Result

Text style isn't completely copied from Word to RTE.

https://user-images.githubusercontent.com/57751283/160602034-ee5d5580-0e53-4473-b4bf-e8685e8a8bd4.mp4

Case №3

Description

User cannot change colors one by one. Menu with color selection closes after selection.

Steps to Reproduce

  1. Open RTE component.
  2. Select "add block" option on the sticky toolbar.
  3. Select any color, e.g. red.
  4. DON'T close menu with color selection.
  5. Chose other color, e.g. blue.

Expected Result

User can change colors one by one. Menu with color selection doesn't close after selection.

Actual Result

Menu with color selection closes after user selects second color of the bock.

https://user-images.githubusercontent.com/57751283/162066449-9518897d-2baf-4b62-b679-858656bbcfb8.mp4

Case №4

Description

Page crash after setting list on empty line.

Steps to Reproduce

  1. Type text like this:
text
text

text

text
  1. Set list like this:
- text
- text

- text
- 
- text
  1. Cut first and second lines.

- text
- 
- text
  1. Paste cut lines in the empty line in the list

- text
- text
- text
- text

Expected Result

The cut lines are pasted at the selected location.

Actual Result

Error "Smth went wrong" appers.

https://user-images.githubusercontent.com/57751283/185620097-edd8987d-e9af-4811-a1bf-6b19ebcadc2b.mp4

Case №5

Description

Links copied from Word are pasted into RTE with different styles.

Steps to Reproduce

  1. Open RTE component.
  2. Copy text from file Text example_links.docx.
  3. Paste copied text.

Expected Result

Links copied from the file and pasted into the RTE have the same style.

Actual Result

Links copied from the file and pasted into the RTE have two different styles.

470 case5_2

https://user-images.githubusercontent.com/57751283/190007193-1752d04a-f69f-4a13-b578-a68682a5e1e6.mp4

Part 2 - Improvements

Case №1

Preconditions

Open https://uui.epam.com/demo?id=RTE

Now

Blue-orange.jpg picture is uploading and downloading for all file types.

To Do

Make stubs for different types of files:

  1. when uploading a pdf file to RTE;
  2. when downloading, depending on the file type (word, excel, txt, pptx, xml, etc.).

Case №2

Preconditions

  1. Open https://uui.epam.com/documents?category=components&id=richTextEditor&skin=UUI4_promo
  2. Select any text.
  3. Change the text style (to italics, for example).
  4. Notice how the style button on the toolbar is highlighted

Now

The button with the selected style barely differs from the other buttons

To Do

Make the button with the selected style more different from the other buttons Case#2 Impr RTE button highlights

Case №3

Preconditions

  1. Open https://uui.epam.com/documents?category=components&id=richTextEditor&skin=UUI4_promo
  2. Move to the end of the editing area.
  3. Select "add video" option on the sticky toolbar.
  4. Paste the video link in the "video url" field in the appeared pop-up.
  5. Click [Ok] button.
  6. Move to the bottom of the video.
  7. Locate where the cursor takes the form of an arrow.
  8. Press "Enter" -> new line appeared after video.

Now

There are too many steps to add a new line after the video.

To Do

Make adding a new line after the inserted video easier and more obvious.

https://user-images.githubusercontent.com/57751283/161846470-eb336570-f0e4-40ab-aa07-abd0b1466cc9.mp4

NatalliaAlieva avatar Mar 12 '22 20:03 NatalliaAlieva