Closed lonnieezell closed 1 year ago
Any suggestions regarding markdown/bbcode editor? Seems like we will have to use two different ones.
I've done a little work on this, but I'd love for you to do it. I used tiny in my implementation, however there are some limitations that don't seem to be useful. I tried to find a better one but failed.
Currently, the CI forum uses the following package. https://github.com/samclarke/SCEditor
I would make the priority here Markdown, personally. My original thoughts were that all new posts would be Markdown, and the BBCode support was primarily there to support the thousands of posts that would be imported. I don't see very many BBCode posts at all needing to be edited after the switch, so I think it's fine if that experience is sub-par personally.
As for recommendations, it's been awhile since I was looking, but I had this page bookmarked to research into a bit more. Also EasyMDE. Years ago I used MarkitUp but that requires JQuery to be pulled in and not sure we want to go down that path if we don't need to.
My goal for the editor was something that was simple and clean, but could support GitHub flavored markdown and be easily extendable.
I'll try to do some more research today on what options we have. But definitely, jQuery is out.
It seems to me that to simplify things at the beginning, we should just forget about the editor for bbcode.
Old bbcode entries after import should only be available for editing by moderation and they can do without an editor. This way we can focus on Markdown only.
I think we can give EasyMDE a try... I also found:
Other than that, there are not that many possibilities that aren't older than ~5 years.
Anyway, we can always make a switch later.
A new button should be present in the sidebar titled "Start a Discussion". This is only available when the user is logged in. When clicked, this should present a form for the user to start a new discussion.
The form should appear on a new page.
The following fields should be available: