Skip to content
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

Multiple image upload #27

Open
YolCruz opened this issue Mar 6, 2023 · 3 comments
Open

Multiple image upload #27

YolCruz opened this issue Mar 6, 2023 · 3 comments
Labels
enhancement New feature or request v4 Will be implemented in v4

Comments

@YolCruz
Copy link

YolCruz commented Mar 6, 2023

Is your feature request related to a problem? Please describe.
I'm interested in using a Notion-like editor in my website. So far, Yopage looks really awesome. However, in my requirements, I need to be able to upload multiple images at the same time when I click the image option. Is there a plan to support such a feature in the future?

Describe the solution you'd like
To be able to select multiple images in the system browser, and that each one of them is added one after the other in the editor

Describe alternatives you've considered
So far I've tried other editors like Editor.js but they also don't provide this feature

@Darginec05
Copy link
Owner

Hi @YolCruz.
I'll have Image component by default.
And this Image will contain functionality for resize image, adding external link etc., but not multiple image.

But in the yopta-editor@v2 I'll provide extend function for each component.
So, any component like Image will be easy configured using extend function to override default behaviour Image component and you can ease add multi image.

Example of usage:

  <YoptaEditor
        value={editorValue}
        onChange={(val: Descendant[]) => setEditorValue(val)}
        components={[
          Paragraph,
          Blockquote,
          Callout,
          Code,
          Link,
          Lists.NumberedList,
          Lists.BulletedList,
          Lists.TodoList,
          Headings.HeadingOne,
          Headings.HeadingTwo,
          Headings.HeadingThree,
          Image.extend({
            renderer: (editor) => (props) => <MyEnhancedImageComponent {...props} />,
          }),
          Video,
        ]}
      />```

@Darginec05 Darginec05 added the enhancement New feature or request label Mar 13, 2023
@Darginec05 Darginec05 added the v2 label Apr 8, 2023
@Darginec05
Copy link
Owner

Stand by.
Version 2 is ready for release

And your issue will be fixed of course 😊

@maZahaca maZahaca added v4 Will be implemented in v4 and removed v2 labels Apr 23, 2024
@maZahaca
Copy link
Collaborator

@Darginec05 I wonder if this issue was fixed under the latest v4 or needs to stay?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v4 Will be implemented in v4
Projects
None yet
Development

No branches or pull requests

3 participants