globocom / megadraft

Megadraft is a Rich Text editor built on top of Facebook's Draft.JS featuring a nice default base of components and extensibility

Home Page:http://megadraft.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Love Megadraft have questions

megphillips91 opened this issue · comments

-- Feature --

Reaching out here just because I am not on the slack channel :) sorry about that. I am willing to contribute to the docs if you guys could help a newbie out a bit. I am not a JS Ninja so it is very possible I am just "doing it wrong". Unfortunately, I am getting alot of errors with trying to implement within functional components using hooks.

Description

  • detailed documentation implementing Megadraft within a react app using only new functional components with hooks

  • documentation to link to an 'official plugin repo' so people can easily share and contribute to plugins

Motivation

  • I guess functional components with hooks are the future and all the documentation examples show class components.

  • I am willing to help update docs if you guys are willing to answer a few questions along the way.

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

Hello, @megphillips91! Thanks for reaching out.

About the detailed documentation and errors you're getting implementing Megadraft within functional components, can you provide an example, please?

About the docs linking to an "official plugin repo". We don't have such a repo right now, the official plugins are inside Megadraft own repo.

There's an example using MegadraftEditor in a functional component in #290.

Thank you Igor-giusti :). I struggled around a bit and in the end I decided to go with another wysiqyg implementation of draft.js which was more suited to my project. Thank you for your response.