builder icon indicating copy to clipboard operation
builder copied to clipboard

plugin html edit jodit

Open minhnhut16 opened this issue 1 year ago • 4 comments

Description

Currently, I'm going to create a custom plugin for HTML editor with jodit because default HTML editor (quill) cannot adapt to my business. I'm following this guide https://www.builder.io/c/docs/make-a-plugin

I'm using node 16.18.0

Screenshot Screenshot 2024-05-24 at 16 33 47

minhnhut16 avatar May 27 '24 07:05 minhnhut16

⚠️ No Changeset found

Latest commit: 66529ae4148ef35d464a2edc6cca4f315b3b700d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar May 27 '24 07:05 changeset-bot[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nextjs-app-router-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 27, 2024 7:31am
nextjs-pages-router-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 27, 2024 7:31am
remix-gen2-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 27, 2024 7:31am
svelte-vite-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 27, 2024 7:31am

vercel[bot] avatar May 27 '24 07:05 vercel[bot]

@gustavocodess Could you approve this PR for me ? Is it have any issue?

minhnhut16 avatar Jun 11 '24 09:06 minhnhut16

hi BuilderIO team, I have updated on pull request, please check and give me feedback if have any update

On Fri, Jul 12, 2024 at 12:29 AM Aziz Abbas @.***> wrote:

@.**** requested changes on this pull request.

Great suggestion, left few comments otherwise looks good

In plugins/html-editor/README.md https://github.com/BuilderIO/builder/pull/3306#discussion_r1674393444:

@@ -0,0 +1,89 @@ +# Builder.io example plugin

readme needs a few instructions on how to enable and what this plugin do, and how to use it

In plugins/html-editor/src/plugin.tsx https://github.com/BuilderIO/builder/pull/3306#discussion_r1674400023:

+function RichTextEditor(props: TextProps) {

  • return (
  • <JoditEditor
  •  value={props.value}
    
  •  onChange={props.onChange}
    
  •  config={config}
    
  • />
  • ); +}

+Builder.registerEditor({

  • /**
    • Here we override the built-in richtext editor.
  • */
  • name: 'html-editor',

this should be the name of a type, if you want to override built-in rich text editor you'd want to chose html or richText

— Reply to this email directly, view it on GitHub https://github.com/BuilderIO/builder/pull/3306#pullrequestreview-2172538515, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVJ4ZXWABI7A27MXMTPQXMLZL26GLAVCNFSM6AAAAABIKUQAPSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDCNZSGUZTQNJRGU . You are receiving this because you authored the thread.Message ID: @.***>

-- CONFIDENTIALITY NOTE: This email (including any attachments) contains confidential information and is intended only for the recipient(s) addressed above. Please notify the sender immediately if you have received this e-mail in error and destroy it (and all attachments) without reading, storing or disseminating any of its contents (in any form) to any person. Email communication is not secure. Trusting Social Group are not liable for any losses arising out of any errors or omissions in the contents resulting from email transmission or any illegal or unauthorized usage or tampering of our email system.

minhnhut16 avatar Jul 12 '24 03:07 minhnhut16