Skip to content

GenZai/discourse-formatting-toolbar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discourse-formatting-toolbar

Forked To change the underline button in striketrhough And automatically apply red color, when using the brush tool


Add text formatting options on your post



Here is the toolbar in the composer and the result in your post when you use the plugin


Tips

  • How to install a plugin : a guide by @techAPJ

  • The [floatr][/floatr] bbcode has been created but I didn't add a button, it doesn't feel necessary.

    If you want to change the margin in the float left, you can go to the Customize section in your admin panels, create a new css page and add this and change the value in the margin part :

.floatl { float:left; margin-right:15px; }

.floatr { float:right; margin-left:15px; }

  • For the color bbcode, you can add a color code in the bbcode : [color=#FF3300]Text[/color] to have a red text. You can find color codes in multiple websites like this one : http://html-color-codes.info/

  • If you want to make more room in the toolbar you can delete the spacer between the categories of buttons by adding in a CSS stylesheet :

.d-editor-spacer { display: none; }

And hide some button like the numbered list by adding :

button.ember-view.btn.no-text.list { display: none; }


Thanks

  • ZogStrip : for his vbulletin BBcode, which was very helpful.
  • eviltrout : for the upgrading of the vbulletin BBcode
  • cpradio : for the help on the toolbar.

About

Add formatting options on your post

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 94.1%
  • Ruby 4.8%
  • CSS 1.1%