미리 채워진 작성기 링크 생성기

: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 · GitHub
: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 님, 안녕하세요.
이러한 변경 사항으로 인해 해당 컴포넌트에 비추천(deprecation) 통지가 시작되었습니다. 업데이트를 위한 PR을 검토하고 승인해 주실 수 있으신가요?

3개의 좋아요

병합했습니다. 링크에 태그를 추가하는 기능이 현재 깨져 있는 것을 확인했습니다. 올해 초 태그에 적용된 변경 사항의 영향을 받는 다른 많은 컴포넌트와 마찬가지로, 이 컴포넌트도 영향을 받았습니다.

2개의 좋아요

처음에는 쉬운 수정으로 보였지만, 실제로는 조금 더 복잡했습니다. 컴포저에서 태그를 선택할 때(코어 변경으로 인해 컴포넌트가 깨진 부분) 태그는 예상대로 객체로 반환되었지만, 컴포저를 닫고 다시 열면 태그는 여전히 객체가 아닌 문자열로 반환되었습니다. 코어에서 수정 작업이 이미 진행 중이지만, 그 사이 컴포넌트는 객체와 문자열 모두를 처리할 수 있도록 되어 있으므로, 모든 경우에서 링크에 태그가 다시 포함되어야 합니다.

3개의 좋아요

정말 유용한 작은 관리자 도우미네요! 마음에 들어요. 방금 적용한 수정도 정말 영리했어요.

2개의 좋아요