Add markdown display support for long text fields#2542
Open
emilienbidet wants to merge 1 commit intoteableio:developfrom
Open
Add markdown display support for long text fields#2542emilienbidet wants to merge 1 commit intoteableio:developfrom
emilienbidet wants to merge 1 commit intoteableio:developfrom
Conversation
This adds a markdown display option for long text fields that allows users to edit content using a WYSIWYG editor with the following features: - Added LongTextDisplayType enum with "markdown" option - Added showAs option to long text field schema (similar to single line text) - Created LongTextShowAs component for field settings UI - Created MarkdownWYSIWYGEditor with toolbar support for: - Bold, italic, strikethrough, inline code - Headings (H1, H2, H3) - Lists (bullet, numbered, task) - Quotes, code blocks, horizontal rules - Links, images, tables - Image upload via drag & drop, paste, or file picker - Created MarkdownExpandModal for full-screen editing with preview - Updated LongTextEditor to detect markdown mode and show expand button - Added translations for "plainText" and "markdown" in all locales https://claude.ai/code/session_01UeuVodegDcLtwLKhTvfvHH
|
|
Author
|
I will test it tonight |
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.
Summary
This PR adds markdown display and editing capabilities to long text fields. Users can now configure long text fields to display content as markdown with a dedicated WYSIWYG editor for rich text editing.
Key Changes
Core Schema & Types
LongTextDisplayTypeenum withMarkdownoption to@teable/corelongTextShowAsSchemato support markdown display configurationILongTextFieldOptionsto include optionalshowAspropertyUI Components
Field Configuration
LongTextOptionscomponent to include the newLongTextShowAsselectorInternationalization
Cell Editor Integration
CellEditorMainto pass field options to the long text editorshowAsconfiguration to render appropriate UIImplementation Details
MarkdownPreviewcomponentAttachmentManagerwith proper attachment ID generationhttps://claude.ai/code/session_01UeuVodegDcLtwLKhTvfvHH