Repository navigation
Conversation
There was a problem hiding this comment.
The implementation seems good, just few notes:
- we will need to backport this to the version 2022.02.xx supported by geonode-mapstore-client so we should make sure that it will work also on that branch. I think CompactRichTextEditor.jsx does not exist on 2022.02.xx so just remember to include it in the backport if needed
- please add unit test to cover at least the requirement of the issue. We should ensure the embedded option is available
- @giohappy one of the requirement is also to allow configurable font families but I don't see it implemented here. We could decide to split this task if so a separated issue needs to be created
| // it will increase the size of the map too much | ||
| uploadEnabled: false, | ||
| // allows to set enable imge upload on/off via props | ||
| uploadEnabled: props.uploadEnabled || false, |
There was a problem hiding this comment.
Why are we allowing to upload images here? I think this is creating embedded base 64 images and I don't think it's a requirement of the task
There was a problem hiding this comment.
As per comments above, I guess image upload was disallowed for Geo-Stories only due to size issue (map + images), so decided to introduce a prop (false by default) if image upload needs to be allowed or just an embedded link
Custom fonts wasn't a requirement. I guess it was added as a bonus, but we can leave it out if it doesn't come for free. |
Description
React Quill editor has been replaced with Draftjs in Dashboard Text Wigets
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x", remove the others)
Issue
What is the current behavior?
Fix #9627
What is the new behavior?
Draftjs added, allows embedding of PDFs or any link, plus allow upload of image rather than a link via props option
Breaking change
Does this PR introduce a breaking change? (check one with "x", remove the other)
Other useful information