Discourse 텍스트 색상

“BBCode-lite” without the need to install a plugin …

Adds a simple control (palette icon) to the Composer to facilitate colouring of the foreground and background of text

  • Select a word or text
  • Hit the palette control
  • It will be wrapped like so: [wrap=color color=# bgcolor=#]word[/wrap]
  • Replace the #s with html-compatible colour names, e.g. “red”, “grey” … experiment.

:biohazard: NB Same caveats apply as to BBCode: can be used to hide text.

Credits

18개의 좋아요

Thanks a ton for this useful little component.
It doesn’t seem to be applying the composer.color_ui_button_title properly, both when left at the default or when customized:

1개의 좋아요

Hello there. I don t have color text button like on this foto. Here I don t see too.

Customization > Theme component 은 여기에 설치되어 있지 않습니다. 그래서 버튼이 표시되지 않습니다.
사이트에 추가하셨나요?

If I knew how to add a plugin it would be good.

I’ve fixed this.

1개의 좋아요

There is a guide how to Installing a theme or theme component
All the information is part of the table in the first post

3개의 좋아요

Thanks very much!

1개의 좋아요

Excellent component!

Bug report: If I click the palette button with no text selected, it inserts the translation descriptor instead of the ‘default text’:

[en_GB.composer.color_ui_default_text]
isn’t found in the site text customization menu, and isn’t on the component settings page.

2개의 좋아요

텍스트를 선택하지 않은 상태에서 팔레트 아이콘을 클릭하면 다음과 같은 결과가 출력됩니다:

[wrap=color color=# bgcolor=#][en.composer.color_ui_default_text][/wrap]

이것이 누락된 문자열(string)인가요?

3개의 좋아요

꽤 까다로운 문제였네요. 수정했습니다:

리포트 감사합니다 @Frully @Canapin

기본 색상 설정을 추가했습니다.

5개의 좋아요

마지막 메시지조차 읽지 않았어요 :facepalm:

3개의 좋아요

멋진 작업이네요 @merefield! 이 기능은 정말 오랫동안 필요로 했던 것이었습니다 — 이제야 드디어 추가되었네요!

이 기능과 이 TC를 결합하여 하나의 초강력한 BBCode TC를 만들 수 있지 않을까요?

4개의 좋아요