-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Color picker hex value not applied to selected text #390
Comments
Has anyone encountered something similar or has any idea on how to fix it? Thank you! |
@andreibaje I just figured out that adding 'iframe: true' makes it work. |
Hei @drilonhalili ! Thank you for your answer, but I have a follow-up question: To what exactly should I add the |
Hey @drilonhalili ! Thanks, I'll have a look at that. |
@andreibaje this is fixed on V4.1.4 froala/wysiwyg-editor#4663 (comment) |
Current behaviour
When selecting a chunk of text to apply a color on it, the HEX color input is not focused thus forcing me to click on the input which results in losing the selected text. The color is applied to the cursor and from there I can type using my color, but the cursor is also moved to the beginning of the input field, blocking me in adding a custom color wherever I need it.
Expected behaviour
Input is focused and text selection is kept when applying a custom HEX value. The issue is not happening for already existent colors in the color palette.
Version: 4.1.3
From time to time, when the color picker is opened I receive the following error:
Uncaught DOMException: Failed to execute 'querySelector' on 'Document': 'label[for="fr-color-hex-layer- 1"]' is not a valid selector.
Has someone else encountered such issues and has possible solutions? I tried to implement something custom on our end, but it's breaking the regular color selection.
The text was updated successfully, but these errors were encountered: