konstantinmuenster / strapi-plugin-rich-text

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

feat: #17 extend insert link dialog to handle content types #32

Open SalahAdDin opened 1 month ago

SalahAdDin commented 1 month ago

What does it do?

It adds support for inserting content types' links.

Why is it needed?

Content Managers want to choose entries from the CMS content types as links in the content.

How to test it?

Setup the plugin with the content types, the properties regarded as labels, and those regarded as uuid.

You can also setup these options in the settings panels. Screenshot_20241009_191328

Go to the entry with the Rich Text field, insert a link, and see a select input with the available content types. Screenshot_20241009_191808

After choosing the content type you will see another select input with a list of the existing entries, it is an autocomplete input so that you can search the entity. Screenshot_20241009_191822

Once you pick the entity, you will see the link source input filled with a calculated URL based on the content type, the singular name, and the entry's uuid field. You can modify it as you like.

Notes