Additional buttons
| Project: | BUEditor |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
I've been using quicktags for a long time and am accustomed to some of the buttons which come with it. e.g. for <code> or [code] or <blockquote> or [quote] ... Quicktags isn't being ported to D6 that I know of and in any case BUeditor seems to be better.
Extending BUeditor with addon buttons seems to be possible however it's rather complex to accomplish. You can write a CSV file but the format is more than arcane, and then how or where do you upload buttons? It would be cool if there were a simpler way to upload button sets or perhaps write a module that implements a button set.
In any case I found it simple to add a few buttons using the built-in button editor. I had to copy .png files from the quicktags module into the bueditor/icons directory.
The buttons I added were:
Code - ed_code.png
js: eDefTagger('code');//toggle tag
Quote - ed_block.png
js: eDefTagger('blockquote');//toggle tag
List item - ed_li.png
js: eDefTagLines('\n', '
', '\n');
