You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have evaluated dozens of HTML WYSIWYG editors and its quite something.
Obviously the two best are TinyMCE and CKEditor. Trix is MIT but disappointing because it lacks the true flexibility we need.
TinyMCE went MIT license for a brief period but changed course and is now no longer MIT licensed for future versions. CKEditor is not open source friendly either.
Image - we should have the ability to insert an image via URL, or upload a new image and update the dimensions / set text of the image. Appears as a regular image.
Video - same for video, insert via URL or upload a video. Appears as an html5 video.
File - Upload an arbitrary file in accordance with appsettings.json file upload rules. Can also set the 'link text' Appears as a link.
Note in the future we may enhance these extensions to allow to pick from a media gallery of already uploaded items.
Update long text field.
The long text field should no longer be a formatted field, just a <textarea> field only with nothing else with it. Remove all code connected to Trix editor and the hotwire controller for it. Simplify the code.
Migration
We need a migration script to convert any existing long text fields to wysiwig fields
Post your thoughts and analysis after doing all this engineering as to whether this editor can and should be used in OpenWater.
The text was updated successfully, but these errors were encountered:
I have evaluated dozens of HTML WYSIWYG editors and its quite something.
Obviously the two best are TinyMCE and CKEditor. Trix is MIT but disappointing because it lacks the true flexibility we need.
TinyMCE went MIT license for a brief period but changed course and is now no longer MIT licensed for future versions. CKEditor is not open source friendly either.
However, this looks fantastic: https://github.com/ueberdosis/tiptap and is MIT licensed. The catch is that it is headless.
The task:
Our current long text field: https://github.com/RaythaHQ/raytha/blob/main/src/Raytha.Web/wwwroot/raytha_admin/js/src/controllers/contentitems/longtext_controller.js
Our current wysiwig field: https://github.com/RaythaHQ/raytha/blob/main/src/Raytha.Web/wwwroot/raytha_admin/js/src/controllers/contentitems/wysiwyg_controller.js
I am fine with v1's UI looking somewhat rudimentary with just buttons like this: https://tiptap.dev/docs/examples/basics/default-text-editor but if able to have more toolbar style similar to this: https://www.tiny.cloud/docs/tinymce/latest/full-featured-premium-demo/ all the better.
The toolbar/buttons should be floating / fixed so it doesn't scroll away
Most of the extensions are free: https://tiptap.dev/docs/editor/extensions/overview.
Make sure to enable:
Marks
Nodes
Functionality
Note in the future we may enhance these extensions to allow to pick from a media gallery of already uploaded items.
The long text field should no longer be a formatted field, just a <textarea> field only with nothing else with it. Remove all code connected to Trix editor and the hotwire controller for it. Simplify the code.
The text was updated successfully, but these errors were encountered: