Closed (fixed)
Project:
BUEditor
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Jun 2009 at 07:09 UTC
Updated:
23 Aug 2010 at 21:20 UTC
Hi there,
I have used bueditor for quite long with a great success. Though I have a problem every time I have to use more advanced buttons, e.g. color palette. For this example I had to create my own palette which I don't think is so great but for basic colors, it works. I attach the code, which though needs improvement. The only thing that somebody has to do is to replace the old bueditor>library>default_buttons_functions.js with the attached one, and call the "create_palette()" function.
I know that I must not change the modules, but I don't have a so advanced level in drupal. I would be obliged for any suggestions.
| Comment | File | Size | Author |
|---|---|---|---|
| default_buttons_functions.js.txt | 20.65 KB | smmtss |
Comments
Comment #1
sofo commentedComment #2
smmtss commentedWhy have you done this?
Comment #3
ufku commentedCheck this out.
Comment #4
jen.c.harlan commentedHi, I have a quick question. Does this work if you have Filtered HTML and BBCode filters turned on, but have Full HTML turned off? If not, can you tell me how to make/import a text color button that will?
Also, I am unsure how to import this button. I'm really new to drupal, and I can see how to use the button editor to add a button, or to import using a csv or paste in code, but I am not sure how to translate what I see on your page to a useable import for my editor.
Thanks for your help!
Comment #5
ufku commentedYou don't need bue.style.js if you want to insert BBCode.
Paste this button code to the "Content" field of your new button(see at the bottom of button list of your editor)
Don't forget to add the custom CSS to your theme's style.css
Comment #6
jen.c.harlan commentedWorks great, and I grabbed a little graphic to work as a button off of a google icon search. Thanks so much, this bar will stop my users' complaints about having to manually type codes for this stuff! :)