konstantinmuenster / strapi-plugin-rich-text

A WYSIWYG editor for your rich text fields
MIT License
9 stars 4 forks source link

feat: #10 add code and code block to the editor #22

Open SalahAdDin opened 2 months ago

SalahAdDin commented 2 months ago

What does it do?

It adds the Tiptap's code and code block lowlight extensions to the editor, code block to block type selector, and code to the toolbar.

Why is it needed?

Many developers want to add code to their blogs, which these plugins allow.

How to test it?

For code: either select a text and click on the button, or use backtick (`) to ope and close the text code.

For code block: either select the paragraph to transform and choose code block from the block selector, or use three backtick (```) to open and close the code block, you can add the language short name after the opening three backticks to specify the language.

Screenshot_20240831_153420

Notes