Markitup custom bbcodes

181 views Asked by At

I am trying to create a simple bbcode-enabled text-editor with just couple codes, but I need to create some custom codes and buttons for them such as [cut=#{line}]#{text}[/cut] and [talk]#{text}[/talk]. And I could not find any manual showing how to do that in markitup.

UPDATE

I'm using rails on server-side and I have already set up bb-ruby to treat those custom bb-codes safely, I just need to include them in the markitup setup.

1

There are 1 answers

0
Benoit Wickramarachi On BEST ANSWER

You can download a BBCODE Set and add your custom button to it.

The documentation , section Magic Markups is explaining how to add and customize buttons.