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

Extend Editor with custom widgets #30

Open
phillipb opened this issue Sep 1, 2018 · 4 comments
Open

Extend Editor with custom widgets #30

phillipb opened this issue Sep 1, 2018 · 4 comments
Labels
feature New feature or request

Comments

@phillipb
Copy link

phillipb commented Sep 1, 2018

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?

@pulyaevskiy
Copy link
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
Copy link

ambrose-gladwell-sonocent commented Apr 15, 2020

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
Copy link
Contributor

CanRau commented Apr 16, 2020

@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

@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
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants