-
Couldn't load subscription status.
- Fork 7
[Drizz 96] Richtext upload media with AWS S3 adapter
#37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
SupakornNetsuwan
commented
Jun 8, 2025


🦋 Changeset detectedLatest commit: 76a6e99 The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
68f06af to
44547bb
Compare
a85b70b to
440ddfe
Compare
- new define config` storageAdapter` - Base `generic adapter` for storage config - `S3 storage adapter` - Premade `Toolbar components` - Richtext component - New file storage route handler - `useStorageAdapter` for access storage client adapter - Fix base css sidebar style, Fix tiptap css template style
packages/react/src/core/file-storage-adapters/generic-adapter.ts
Outdated
Show resolved
Hide resolved
packages/react/src/core/file-storage-adapters/generic-adapter.ts
Outdated
Show resolved
Hide resolved
packages/react/src/core/file-storage-adapters/generic-adapter.ts
Outdated
Show resolved
Hide resolved
d6a6da2 to
c5a7f1a
Compare
feat: Convert richtext field type to `json` from `string`
| Color, | ||
| BackColorExtension, | ||
| Underline.configure({ HTMLAttributes: { class: 'earth-underline' } }), | ||
| SelectionExtension, | ||
| TextStyle, | ||
| TextAlign.configure({ | ||
| types: ['heading', 'paragraph'], | ||
| alignments: ['left', 'center', 'right', 'justify'], | ||
| defaultAlignment: 'left', | ||
| }), | ||
| StarterKit.configure({ | ||
| bold: { HTMLAttributes: { class: 'bold large-black' } }, | ||
| paragraph: { HTMLAttributes: { class: 'paragraph-custom' } }, | ||
| heading: { HTMLAttributes: { class: 'heading-custom' } }, | ||
| bulletList: { HTMLAttributes: { class: 'list-custom' } }, | ||
| orderedList: { HTMLAttributes: { class: 'ordered-list' } }, | ||
| code: { HTMLAttributes: { class: 'code' } }, | ||
| codeBlock: { HTMLAttributes: { class: 'code-block' } }, | ||
| horizontalRule: { HTMLAttributes: { class: 'hr-custom' } }, | ||
| italic: { HTMLAttributes: { class: 'italic-text' } }, | ||
| strike: { HTMLAttributes: { class: 'strikethrough' } }, | ||
| blockquote: { HTMLAttributes: { class: 'blockquote-custom' } }, | ||
| }), | ||
| CustomImageExtension.configure({ HTMLAttributes: { className: 'image-displayer' } }), | ||
| ImageUploadNodeExtension.configure({ | ||
| showProgress: false, | ||
| accept: 'image/*', | ||
| maxSize: 1024 * 1024 * 10, // 10MB | ||
| limit: 3, | ||
| }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
color(),
backColor(),
underline({ HTMLAttributes: { class: 'earth-underline' } }))
// ...,There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
อันนี้สามารถมาแก้หลัง merge ได้มั้ยนะครับ กลัวแก้ไม่ทันนน