Aizada_M
(Aizada M)
9월 5, 2023, 7:48오후
1
인사드립니다. 제 질문이 다소 순진하게 느껴질 수 있지만, 텍스트 게시물 내에 “복사” 버튼을 만들 수 있는 정확한 코드나 테마 구성 요소를 찾는 데 어려움을 겪고 있습니다. 포럼 인스턴스의 테마 컴포저에서 텍스트 복사 버튼 생성 기능을 찾아볼 수 없어 당혹스럽습니다.
제가 하려는 바를 보여주는 스크린샷입니다:
이 효과를 어떻게 구현할 수 있는지 알려주실 수 있을까요?
Moin
9월 5, 2023, 7:56오후
2
이것은 코드 블록에 복사 버튼 표시 사이트 설정입니다.
Now live in core Discourse is the ability to show a copy button for codeblocks!
import { createWidget } from 'discourse/widgets/widget';
createWidget('my-widget', {
tagName: 'div.hello',
html() {
return "hello world";
}
});
This feature is off by default, but if your community could benefit from it, you can turn it on by enabling the show copy button on codeblocks site setting.
Some notes about the feature:
The button shows up on pre > code codeblocks, but not inline, …
Aizada_M
(Aizada M)
9월 5, 2023, 8:08오후
3
Moin:
코드블록
정말 감사드립니다 ! 이 기능을 하루 종일 찾아보고 있었습니다.