Editor Básico do Discourse

Olá, estou trabalhando atualmente em um plugin que substitui o editor padrão por um editor WYSIWYG. Acho que é mais fácil para usuários iniciantes como eu e outros. Aqui está um vídeo curto sobre como funciona até agora e quais são meus planos:

Acho que será concluído nos próximos meses (dependendo da minha motivação :smiley: ). Gostaria de saber se outras pessoas também têm interesse em usá-lo.
Muito obrigado :slightly_smiling_face:
PS: após concluir isso, reescreverei todos os outros plugins que fiz até agora para que sejam baseados neste editor. Há algumas funcionalidades que planejo, as quais permitirão que outros plugins utilizem este plugin como uma espécie de API para substituir o compositor e o processo de pós-edição por algo personalizado. Para um projeto em que estou trabalhando, isso já funciona bastante bem. O problema é que, atualmente, alguns plugins que modificam o compositor são mutuamente exclusivos. Se ambos forem ativados, haverá problemas. Acredito que este plugin pode ajudar a resolver essa questão. Aqui está o repositório: GitHub - spirobel/discourse-basic-editor: An attempt to make discourse more user friendly. · GitHub

76 curtidas

Well done! An incredible initiative and we are already testing it in our discourse composition!
Will be glad to help with Russian translation and bug reports.

4 curtidas

Pretty cool initiative!

I see you went with CKEditor. Did you test any others?

For example https://trix-editor.org/ is the one incorporated in Rails 6, the most popular https://www.slatejs.org/examples/richtext, or the minimalist pell - jaredreich.com.

12 curtidas

The way the composer should be, bloody brilliant! I have some nit-picky feedback but that can wait since you’re just in the beginning stages.

15 curtidas

hahahahahahhaha
:laughing:

7 curtidas

Does this works with the latest build? 2.6 BETA

1 curtida

Neat idea! Even on my forum, not everyone is comfortable with using the Markdown Editor directly.
The beginners (non-tech guys and elderly ones) probably feel the MD syntax alienish, and sometimes mess up their post formatting. (IDK how tho)

It would be great if the plugin eventually becomes an official plugin. :slight_smile:
Or even part of Discourse as a setting which the admin can enable for WYSIWYG editor.

Will try it out and post my feedback!

6 curtidas

FYI the upload seems to be broken with the latest build, I’m getting this error:

image

1 curtida

I guess its fixed now. btw… if someone does not have a test instance but wants to take a look:
https://cidian.social/
you can create an account there and make test posts :smiley:
Its my dev instance so it might break sometimes or I will install other things but at the moment the basic editor is installed there.

6 curtidas

Haven’t installed yet but a cool piece of work just by the sound of it. I’ll try this soon :slight_smile:

5 curtidas

Great composer. Can you add color for text?

I took it for a test drive. Impressive.

Liked some of the features such as entering a table or adding a formula.
The cat icon had me confused until I clicked it.

:+1:

5 curtidas

haha nice :cat2: sadly it will disappear once I switched over to html only posts.
@Cam_Logical I will do this once I switched over to html. maybe not color, but probably alignment.

3 curtidas

Would you consider an option for touchscreen users in the design?

The context menus for selection on touchscreens are displayed ABOVE the selection & obscure the button bar when the selection is in the top couple lines of the text box.

This means short messages never gain access to the button bar functionalities.

Could there be an option to have the formatting buttons at the BOTTOM of the text box?

1 curtida

Once oneboxing and the other Discourse related things are implemented we will for sure switch to this true WYSIWYG composer based on CKEDITOR as we used the same one our current website. Great work so far.

5 curtidas

Do the oneboxes not work at all? What happens when you post a link on the first line of the post?

I think they should work with this one too. I’ll post my findings once I try this.

4 curtidas

Maybe, not tested and there was no update from the OP… but there is also mentioning and what else I don’t know that needs to be implemented…

Hollow from picture. What do you use.

image

Oneboxing works fine on my end with this.

1 curtida

Everything works like it would work with the normal editor. The UX is just not perfect at the moment.(if you want you can click on “show preview” and just do this like you are used to) But my assumption is that these features are not that relevant for beginner users anyway, so my urgency to work on this is not super high. The discourse specific additions to markdown (quotes of specific posts, mentions, oneboxes) will not be displayed in the wysiwg part.(but they are still visible in the preview and you can also switch back and forth to the advanced editor. just look at my video) My plan is to add a small button to every link so users can select to make them a onebox. All of this will be done by switching to html only posts. the conversion to and from markdown is just too much of a hassle. It wont be too hard to implement all of this. I read the relevant code in the discourse code base already. But my personal project ( a mandarin, english, german dictionary based on discourse) is higher on my priority list. Please keep in mind that I dont get paid to do any of this.

9 curtidas