v3 beta is available - testers welcome! #36
Replies: 8 comments 11 replies
-
Hi!, thanks for doing all this. I was planning to test it out, but can't install the beta version, npm is giving me an error. Error: Cannot find module '/.../node_modules/@enzedonline/quill-blot-formatter2/check-upgrade.js' Thanks |
Beta Was this translation helpful? Give feedback.
-
All that work and tripped over at the finish line ;) |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating the beta. I tried it but for some reason still can't make the image alignment work. Here is an updated codesandbox with the beta version. https://codesandbox.io/p/sandbox/ym5344 Let me know if I'm doing something wrong. Thanks. |
Beta Was this translation helpful? Give feedback.
-
@devcaco Well, that's confusing - I added some extra debug into beta 4. I can see that the imageAlign and iframeAlign formats are there. If I use the following at the console with an image selected on standard Quill run on Vite: blot=blotFormatter.currentSpec.getTargetBlot()
blotFormatter.ImageAlign.add(blot.domNode, 'center') I see the debug messages from the imageAlign format and the image is aligned. Same if I run I also tried Incidentally, you're not loading the css the alignments. I can see you import it, but it's not loaded on the demo page. I'm not a react developer, not sure where you need to add this. I just pasted the styles into styles.css on my fork. I tried re-adding the formats to the global Quill as well as the quill.constructor - neither make any difference. For some reason, when using React, Quill doesn't run those formats even though they're registered. You can enable verbose mode with I'll have to give it more thought tomorrow. |
Beta Was this translation helpful? Give feedback.
-
@devcaco Yes, exactly that. Not being familiar with React, I went on the Quill site to see how they do it. They don't use the react-quilljs wrapper library at all (maybe this is only for Quill 1.x??). I created an Editor app following their methodology and now it's up and running. I also updated all the dependencies, some of them were pretty old and past support date, maybe this was also needed to get it working. "dependencies": {
"@enzedonline/quill-blot-formatter2": "3.0.0-beta.4",
"quill": "2.0.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-quilljs": "2.0.5"
},
"devDependencies": {
"@types/react": "^19.1.9",
"@types/react-dom": "^19.1.7",
"@vitejs/plugin-react": "^4.2.1",
"typescript": "5.9.2",
"vite": "^5.2.10"
}, I'll reduce it down to a minimum working example and post here later on. |
Beta Was this translation helpful? Give feedback.
-
Hi! I updated the CodeSandbox I provided earlier to only use the Native Quill Library and the image alignment worked like a charm!!! The good news is that we can now confirm it works with React 😀 FYI I tried the CodeSandbox link you provided but got a DevBox Not found error. Maybe its a permission issue.. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi @enzedonline, Great setup — it’s working perfectly, thanks! I did notice one thing: when inserting an image, there’s no drag functionality to reposition it within the editor content. Do you know if this is intentional, or should drag-and-drop be supported? From what I’ve found, Quill 2 blocks drag events by default, but this can be overridden by importing the Scroll blot and extending its class. It also seems the original blot-formatter library supports this, likely because it was built for Quill 1. I’ll experiment with adding this feature myself, but I wanted to flag it in case you have any thoughts or suggestions. Thanks, |
Beta Was this translation helpful? Give feedback.
-
beta 6 is published - this one removed all direct imports of the Quill global (bare import) which caused the ESM build to fail when used in a script module without an import map. It meant needing to use factory methods to create the custom blots using the quill instance constructor, and for a few remaining methods also. Both factory methods for the image & video blots are exported. A couple of extra tweaks to default styles also. Hopefully the last iteration before v3.0.0 production release. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've made a significant rewrite of much of the code to address an issue when the build is consumed directly in environments such as vite, angular, react, vue ...
Before I release this, I'd welcome any feedback from people using these environments willing to test the beta.
Install path for the beta is
@enzedonline/quill-blot-formatter2@beta
- see the readme for more info (yes, I committed the beta repository ahead of time 🙈).Please add any feedback (+/-) below.
Beta Was this translation helpful? Give feedback.
All reactions