Repository navigation
Improving Uploading and Editing Images - #788
Merged
Merged
Conversation
Replace the bare TextArea editor with Jodit 4.x (MIT license, no API key required). Jodit provides full WYSIWYG editing with HTML source view toggle, toolbar formatting, and built-in drag-and-drop image upload. - Add JoditBuilder implementing IRichEditBuilder with CDN-loaded Jodit - Add AJAX image upload endpoint (POST /api/image/upload) for drag-and-drop - Wire Jodit as the default editor in DI (fallback for unknown config values) - Remove TextAreaBuilder and TextAreaEditor constant - Update config defaults and admin dropdown to list Jodit first Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use insertHTML with a <figure> wrapper instead of insertImage so dropped images are placed as block-level elements rather than inline inside paragraph tags. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add GET /api/image/list endpoint that reads the binary folder and returns image files in Jodit filebrowser format. Configure Jodit's built-in file browser to call this endpoint, allowing users to browse and insert images that have already been uploaded. Clicking the image toolbar button now shows both upload and browse-existing options. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add required name and type fields to file objects and source name to match Jodit 4 filebrowser expected JSON structure. Add process and isSuccess callbacks to filebrowser ajax config. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The Jodit editor now handles image upload via drag-and-drop and the toolbar image button with file browser. Remove the redundant form-based upload button, its HandleImageUpload controller method, and the UploadImageAction constant. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Listen for filebrowser:insertImage event and override default behavior to insert images wrapped in a figure element, consistent with the drag-and-drop upload insertion. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Mar 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Classification
Editor integration and code cleanup.
PR Summary
This pull request replaces Froala and TinyMCE editors with Jodit for blog post editing, streamlining image upload and file browsing. It removes obsolete code and updates configuration to use Jodit as the default editor.
EntryEditControl.