[MGNLUI-6958] ReadOnly RichTextField still accepts new lines Created: 22/Nov/21 Updated: 09/Jan/24 |
|
| Status: | Open |
| Project: | Magnolia UI |
| Component/s: | dialogs |
| Affects Version/s: | 6.2.13, 6.2.27 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Chris Jennings | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | RichTextEditor, VN-Analysis, richtext | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 3h | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||
| Template: | |||||||||||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||||||||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||||||
| Epic Link: | FieldsMaintenance | ||||||||||||||||||||||||
| Team: | |||||||||||||||||||||||||
| Description |
Steps to reproduce
Expected results
Actual results
Development notes
|
| Comments |
| Comment by Quach Hao Thien [ 15/Mar/23 ] |
DiscoveryTo make it consistent with other fields, we could override the setReadOnly() in http://git.magnolia-cms.com/projects/PLATFORM/repos/ui/browse/magnolia-ui-vaadin-common-widgets/src/main/java/info/magnolia/ui/vaadin/ckeditor/MagnoliaCKEditorTextField.java @Override public void setReadOnly(boolean readOnly) { super.setReadOnly(readOnly); setViewWithoutEditor(readOnly); } This will hide the editor and all control of ckeditor, then restyling the field with css |