My goal is to have all the building blocks in place to allow for editor experimentation in Discourse.
I have discussed this with @david, @tgxworld and @martin in the past, we have a lot of stuff in progress at the moment and can not get started quite yet. That said … our rough plans are:
enough extensibility to allow easy replacement of the editor with a contenteditable composer
experiments around trivial components that add minimal extra interesting functionality
A component that “inlines” images and leaves everything else alone in markdown (super useful for mobile composer)
A component that syntax highlights markdown
perform experiments around full feature editors such as CKEditor 5 (on my list to contact Wiktor once we are ready)
The approach of starting from scratch with a brand new frontend is not advisable and will be something that will be a nightmare to support long term. It may be a short term hack that buys you a few months, but long term it is wasted effort.
trying to replace the editor the way I tried to do it in this plugin is also a nightmare .
I disagree with this. There is much to be gained from this kind of work. I recently had a chat with @renato who is also working on something similar. The other thing is this: Discourse would make for a great headless CMS! I recently built this news website with nextjs and a strapi backend:
It also has a Discourse forum attached now. So why still use strapi? The strapi backend does nothing different than a Discourse forum. It just saves markdown and has a permission system. So my next step will be to get rid of strapi entirely and just use an articles category in Discourse.
I think there is a huge potential here to serve this headless CMS usecase and make it more user friendly.
Anway! Thank you very much for your comment and your work on Discourse!
I have heard this request a few times in recent months. It is certainly an interesting problem.
The big gap at the moment would be API stability guarantees. We do not provide them so you are tied to a stable release and potential drama when upgrading stable to a new stable.
Another long term project once we clear a few other ones may be creating a stable and guaranteed API. It is certainly something I think about but it is not on the roadmap atm.
Yeah I hear you, we are coupled way too tightly at the moment to TEXTAREA, we need an abstraction layer with 2 implementations.
It is a very big project to undertake but I expect to get started in the next year or so.
Thanks so much for all the experimentation, we very much love seeing this out there.
Hello @spirobel
My site can’t load and get erorr later install plugin
Uncaught Error: Could not find module discourse/lib/raw-templates imported from discourse/plugins/DiscourseBasicEditor/initializers/discourse-basic-editor
That seems to be a similar error to the one @huynhthai824 experienced a short time ago. I’ll mark this plugin as broken until @spirobel has a chance to weigh in.
Markdown is good for programmers, normal people need something different … I also think so …
I started this as a side project to see if it is possible. it certainly is. But I have since gotten older and wiser (hopefully ). There are better ways to spend free time than trying to swim against the tide of a large open source project.
What I need is not WYSIWYG, but a editor that make text and images occupy separate areas, rather than being mixed together. Just like Twitter, Mastodon or other social media’s doing.
I use Discourse for recording my life, and it will be present with lots of text and images. I think markdown is not good to use, because when uploading some media, you must wait for finish, For example: