Генератор ссылок для композитора с предзаполненными полями

:information_source: Summary Adds a button at the bottom of the editor that generates a link to a prefilled composer based on the current content
:eyeglasses: Preview Theme Creator
:hammer_and_wrench: Repository GitHub - moin-Jana/prefilled-composer-generator: Adds a button at the bottom of the editor that generates a link to a prefilled composer based on the current content
:question: Install Guide How to install a theme or theme component
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

This theme component adds a button next to the close button in the composer that generates a link to a prefilled composer using the current content. The button is displayed when creating a new topic, personal message, or when editing the first post of a topic or message. Additionally, there is a setting that allows you to specify which groups will see the button.

Setting Description
restrict_to_groups Display the copy button only for members of the selected groups

For information on how to create topic and message links manually, see the documentation on Creating a link to start a new topic with pre-filled information and Creating pre-filled personal message links.

In addition to generating links for others, you can also use this button to convert your draft into a link. This serves as a workaround for the limitation of having only one draft at a time, allowing you to save and later continue working on your draft.

20 лайков

Nicely done! :star_struck: :discourse:

5 лайков

Pretty sweet awesome saves a lot of manual work

4 лайка

Привет @moin,

Этот компонент получил уведомление об устаревании в связи с этими изменениями. Не могли бы вы проверить и одобрить PR с обновлением?

3 лайка

Объединено. Я заметил, что добавление тегов к ссылкам в настоящее время не работает. Как и многие другие компоненты, этот также затронут изменениями в тегах, которые произошли в начале этого года.

2 лайка

Поначалу это казалось простым исправлением, но оказалось, что всё немного сложнее. Хотя при выборе тегов в редакторе они возвращались как объекты, как и ожидалось (именно это изменение в ядре сломало компонент), после закрытия и повторного открытия редактора теги всё ещё возвращаются в виде строк вместо объектов. Исправление в ядре уже в разработке, но тем временем компонент может обрабатывать как объекты, так и строки, поэтому теги снова должны включаться в ссылки во всех случаях.

3 лайка

Это такой милый маленький помощник для админа! Мне нравится. И очень хитрое решение только что.

2 лайка