Skip to content

Extend Editor with custom widgets #30

@phillipb

Description

@phillipb

I've been digging through the code, and I'm looking for a way to extend the editor with a custom widget. Looking for something similar to the way you can extend Quill.js with custom inline embeds. Any documentation or ideas on how i might go about that?

Activity

pulyaevskiy

pulyaevskiy commented on Sep 1, 2018

@pulyaevskiy
Contributor

If you’re looking for supporting more styles then there is no API for that at this point, unfortunately.

For very common styles (e.g. indentation, color, alignment) you have an option of extending existing framework and submitting your changes as a pull request though. It is not a trivial task of course.

Ideally I would like to support this use case in some form, just need to figure out a good interface for it.

ambrose-gladwell-sonocent

ambrose-gladwell-sonocent commented on Apr 15, 2020

@ambrose-gladwell-sonocent

Hi, I'm interested in using Zefyr but would need the ability to customise the attributes used in the Notus documents and also how the new custom attributes are displayed using Zefyr. I am currently testing out ProseMirror for our web application and saving the resulting formatted text as markdown. So our use case would only work once a markdown decoder is implemented but would be happy to contribute towards this as well. We are using a very slimmed down version of formatting with only the need for basic inline styles (bold, italic) and lists but have also added a custom inline style of underline. We're able to do this because you can set up the ProseMirror editor instance with a customisable config schema which dictates the blocks and inline styles allowed. Was thinking this could be a good way to go for Zefyr. Would you be open to a PR which implements this if I could get one coded up?

CanRau

CanRau commented on Apr 16, 2020

@CanRau
Contributor

@ambrose-gladwell-sonocent have you seen #191?
Looks like the author doesn't have a lot of time for zefyr lately 🤷‍♂️
you can fork and add the markdown pr, image support isn't there yet I think though

ambrose-gladwell-sonocent

ambrose-gladwell-sonocent commented on Apr 16, 2020

@ambrose-gladwell-sonocent

@CanRau Yeh, I had a look and would be awesome if it got merged. I hoped that wasn't the case but yeh I think I'll be creating a fork to do this work. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @pulyaevskiy@phillipb@CanRau@ambrose-gladwell-sonocent

        Issue actions

          Extend Editor with custom widgets · Issue #30 · memspace/zefyr