wysiwyg-editor icon indicating copy to clipboard operation
wysiwyg-editor copied to clipboard

Typing with formatting options on after selection cancel the current formatting option

Open ubalensi-yoobic opened this issue 11 months ago • 1 comments

Expected behavior.

The new typing should have the selected formatting option applied

Actual behavior.

The new typing reset the formatting option of the previously selected piece of text

Steps to reproduce the problem.

=> Type some text in the box => Select one piece of the text => assign it some formatting option (fontFamily, color, textDecoration etc.. ). => Double click this selection or highlight it => start typing from the selection

Editor version.

4.1.4

OS.

macOS 14.1.1 (23B81)

Browser.

Google Chrome (Version 122.0.6261.69 (Official Build) (arm64))

Recording.

https://github.com/froala/wysiwyg-editor/assets/42937044/b7dd73cd-e26f-4c15-bc7f-19f75acc5480

As a side note, can we have a method to somehow getting the current formatting of a selection returning for instance { textDecoration: 'underline', color: '#ff00ff', fontFamily: 'Times new roman" } etc

ubalensi-yoobic avatar Mar 06 '24 12:03 ubalensi-yoobic

can i get an answer from this one ? its been a month...

ubalensi-yoobic avatar Apr 10 '24 08:04 ubalensi-yoobic