Integrate Toast UI Editor for Markdown
Merge request reports
Activity
added statusdiscussion typefeature-request ui workflowinternships labels
assigned to @mmladenov
- Resolved by Martin Mladenov
Disable analytics!
removed statusdiscussion label
- Resolved by Martin Mladenov
@taicoaerts Currently, the toastui (WYSIWYG editor) JS and CSS are simply downloaded and included from the assets folder, not via npm. I tried to do it using yarn, as we discussed in the meeting, (see cf105b08 and 32a34455 (on another branch)), but I ran into issues with dependencies - the editor has dependencies which also need to be included (which themselves have even more dependencies, and so on...). With the tool we currently use to manage javascript files (Sprockets) it doesn't seem to be possible to automatically resolve and include the dependencies too. To do that, we would need to switch to using something more advanced like Webpack, perhaps Rails' WebPacker (which, however, will no longer receive anything other than security updates as of Rails 7).
Edited by Martin Mladenov
added 14 commits
- c7aef23f - Change table styling
- 1261d14f - Rename class from toastui-editor to toastui-editor-init to avoid conflicts
- 97ff5f96 - Add height to initializer
- ae37c927 - Add markdown editor to admin theme form
- abe00d81 - Add markdown editor to admin project form
- 8a26003e - Add markdown editor to admin generic project form
- d97d3bce - Add markdown editor to admin internship form
- 76f4bf17 - Add markdown editor to admin research group form
- bf5c58e5 - Add markdown editor to admin thesis project form
- e668f9d3 - Add markdown editor to admin experiment project form
- 976e13bf - Delete _markdown_preview.html.erb
- 27849d9f - Remove markdown preview endpoint
- 4836093f - Remove markdown preview assets
- 28871fbb - Add markdown editor to course edit page
Toggle commit list- Resolved by Martin Mladenov
Disable pasting images
- Resolved by Martin Mladenov
Save markdown text to output field before destroying editor so that the changed text gets retained when navigating away pressing back.
- Resolved by Martin Mladenov
Look into changing the style to be similar to the current style
- Resolved by Martin Mladenov
Update rendering to use toastui as well
added 15 commits
-
28871fbb...be43b27f - 5 commits from branch
development
- eee54c18 - Merge branch 'development' into 145-wysiwyg-editor-2
- 103122b0 - Disable base64 images in toastui editor
- d9b0bf91 - Store current text in output field so that changes are persisted when navigating back/forward
- 98e5e93e - Remove editor div from DOM
- 0c1a87d1 - Fix teardown event being called multiple times per editor
- 5305715e - Add support for markdown editor in system tests
- 9acda020 - Fix generic project creation system test
- 4cafe023 - Add comments
- fa48d751 - Add custom handling for required fields
- 33c03d5f - Refactor markdown js
Toggle commit list-
28871fbb...be43b27f - 5 commits from branch