원시 게시 버튼

:discourse2: 요약 Raw Post Button은 게시글 메뉴에 버튼을 추가합니다. 버튼을 클릭하면 게시글의 원본(Markdown) 버전이 포함된 모달/팝오버가 표시됩니다.
:eyeglasses: 미리보기 Discourse Theme Creator에서 미리보기
:hammer_and_wrench: 저장소 링크 https://github.com/discourse/raw-post-button
:open_book: Discourse 테마를 처음 사용하시나요? Discourse 테마 사용 입문 가이드

이 테마 컴포넌트 설치

기능

설정

이름 설명
min trust level 게시글 메뉴에서 버튼이 표시되도록 요구되는 최소 신뢰 수준
번역 기본값
button_title Raw Post

설정 항목은 min_trust_level 하나뿐입니다.

이 설정을 사용하면 해당 버튼을 볼 수 있도록 현재 사용자가 가져야 하는 최소 신뢰 수준을 설정할 수 있습니다. 기본값은 TL0입니다. 비로그인 사용자는 절대 볼 수 없습니다.

크레딧

이 컴포넌트의 아이디어는 @EricGT 님이 제안했습니다. :+1:


:discourse2: 우리가 호스팅하나요? 테마 컴포넌트는 Standard, Business, Enterprise 플랜에서 사용할 수 있습니다.

43개의 좋아요

Awesome.

Now it just needs to work as keyboard shortcut. Since r is not used, I would suggest that.

For those not use to using keyboard shortcuts enter ? when not in edit mode to open keyboard shortcut popup.

2개의 좋아요

Per post keyboard shortcuts only work if the post is selected with J / K. When you have a post selected, the R key is already used for reply_to_post. So we need to find a different shortcut for that.

4개의 좋아요

Great idea! It’s especially useful to post internal markdown templates for forum staff members in order to use them in wordpress, or any other markdown-“compatible” system.

How about to add a Copy button the the raw post popup?

5개의 좋아요

Raw post dark colour isn’t applied in combination with the new Dark Mode setting:

This would be super useful :heart_eyes:, I’m often finding it difficult to copy longer chunks of raw text directly from popup, especially on mobile.

4개의 좋아요

Hi there, I apologize for bumping.

What could would I have to edit, exactly if possible, to replace the icon with another Font Awesome icon?

Thanks,
anythingoracve.

There is no admin option to change the icon.

AFAIK the only way to do it would be to clone the GitHub repository, modify the code by either hard coding a new icon, or adding a new option, then use the updated code on your site.

You could also request that as a new feature, but there is no guarantee on when it would be done.

HTH

2개의 좋아요

since i think this button just show the raw version of a post, like https://meta.discourse.org/raw/152542

we miss the post TITLE!
can’t we have it as first line?
maybe with a ‘#’ like

# Raw Post Button

1개의 좋아요

Posts don’t have titles, topics do.

The button shows posts’ raw content.

Nonetheless, why would you need to see a topic’s title in a post’s raw content display?

You click on the raw button in the topic view, so you already know the topic title, which is always visible at the top of the screen.

The title of a topic does not really relate to the content of a post. Therefore, it doesn’t really belong in a popup showing the ‘raw’ post content. It also doesn’t contain any raw content to display.

So I’m not sure how useful it would be to show this information. :thinking:

2개의 좋아요

https://meta.discourse.org/raw/152542 gives the raw of a topic, not a post.
topics have titles.
and i need it because i use these raw to backup markdown versions of the content

2개의 좋아요