From cdeb96b58488f302bee05d272a535c458ad860b7 Mon Sep 17 00:00:00 2001 From: zbeyens Date: Wed, 20 Nov 2024 15:57:06 +0000 Subject: [PATCH] Merge pull request #3794 from udecode/docs/media Upload --- .eslintrc.js | 2 +- README.md | 2 +- components.json | 2 +- .../editor/{use-create-editor.tsx => use-create-editor.ts} | 1 - src/components/plate-ui/editor.tsx | 1 + 5 files changed, 4 insertions(+), 4 deletions(-) rename src/components/editor/{use-create-editor.tsx => use-create-editor.ts} (98%) diff --git a/.eslintrc.js b/.eslintrc.js index 12e2acd..462dd3d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -24,7 +24,7 @@ module.exports = { 'react/display-name': 'off', 'react/jsx-key': 'off', 'react/no-unescaped-entities': 'off', - 'tailwindcss/classnames-order': 'warn', + 'tailwindcss/classnames-order': 'off', 'tailwindcss/no-custom-classname': 'off', 'unused-imports/no-unused-imports': 'warn', 'unused-imports/no-unused-vars': [ diff --git a/README.md b/README.md index fd6a8ac..6dbd763 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ npx shadcx@latest add editor-basic -r plate ### 2. Using Template -[Use this template](https://github.com/plate-editor/plate-template/generate), then install dependencies: +[Use this template](https://github.com/udecode/plate-template/generate), then install dependencies: ```bash pnpm install diff --git a/components.json b/components.json index 92372a7..64c647d 100644 --- a/components.json +++ b/components.json @@ -25,4 +25,4 @@ "prefix": "" }, "tsx": true -} \ No newline at end of file +} diff --git a/src/components/editor/use-create-editor.tsx b/src/components/editor/use-create-editor.ts similarity index 98% rename from src/components/editor/use-create-editor.tsx rename to src/components/editor/use-create-editor.ts index ef89c6c..b84b16c 100644 --- a/src/components/editor/use-create-editor.tsx +++ b/src/components/editor/use-create-editor.ts @@ -19,7 +19,6 @@ import { export const useCreateEditor = () => { return usePlateEditor({ override: { - // Default styles in globals.css components: { [BoldPlugin.key]: withProps(PlateLeaf, { as: 'strong' }), [ItalicPlugin.key]: withProps(PlateLeaf, { as: 'em' }), diff --git a/src/components/plate-ui/editor.tsx b/src/components/plate-ui/editor.tsx index c17d66e..6810bb1 100644 --- a/src/components/plate-ui/editor.tsx +++ b/src/components/plate-ui/editor.tsx @@ -82,6 +82,7 @@ const editorVariants = cva( 'size-full px-16 pb-72 pt-4 text-base sm:px-[max(64px,calc(50%-350px))]', demo: 'size-full px-16 pb-72 pt-4 text-base sm:px-[max(64px,calc(50%-350px))]', fullWidth: 'size-full px-16 pb-72 pt-4 text-base sm:px-24', + none: '', }, }, }