-
Bug
-
Resolution: Fixed
-
Neutral
-
6.2.32
-
None
-
None
-
Empty show more show less
-
Nucleus 34
-
3
-
Yes
Steps to reproduce
- Â Create a rich text field component
- Â Click on Link to Internal Page or Link to DAM document
- Close without selecting anything
- Check that the rich text has 0.2 opacity
Expected results
0.2 opacity attribute is removed from the editor
Actual results
The opacity attribute is only removed when a page or a DAM document is selected
Workaround
N/A
Development notes
When a page or DAM document is selected, there is a call to:
demo.magnolia-cms.com/VAADIN/js/magnolialink/plugin.js
function setReadOnly(editor, isReadOnly) { if (isReadOnly) { editor.element.setStyle('opacity', '0.2'); } else { editor.element.removeStyle('opacity'); } }
And this is done through:
demo.magnolia-cms.com/VAADIN/js/magnolialink/plugin.js
editor.on(EVENT_SEND_MAGNOLIA_LINK, function(e) {
deselectedCommand();
setReadOnly(editor, false);
[...]
The problem is that hen you click on the X icon (close dialog) or at "Cancel" button, the editor.on(EVENT_CANCEL_LINK, function(e) is not being called so the opacity can't be fixed.
Acceptance criteria
1.
|
Implementation | Completed | Jaromir Sarf | |
2.
|
Code review | Completed | Adam Siska | |
3.
|
Pre-integration QA + PM (for ticket approval) | Completed | Adam Siska | |
4.
|
QA | Closed | AntonĂn Juran |