Closed (fixed)
Project:
BUEditor
Version:
7.x-1.4
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Mar 2012 at 19:51 UTC
Updated:
25 Apr 2012 at 18:31 UTC
I read this on your homepage:
http://ufku.com/drupal/bueditor/contributions/class-library
I know how i can add dropdowns with markup that will be inserted:
js: E.tagChooser([
['span', 'Blue', {'class': 'blue-text'}]
]);
I am not sure how i can add this t oa dropdown
E.toggleClass('error', 'div');
Another idea that i had was to make a dropdown with some "html templates". Like when i click it it adds som html structure to the textarea.
An example would be much appreciated.
thanks.
Comments
Comment #1
marcoka commenteddid some experiments, one solution i found for having some kind of class-library-dropdown
Comment #2
ufku commentedYou can also use E.tagChooser as the popup generator and then alter the links in it.
Comment #3
marcoka commentedok that works. i kind have another problem. when i only want to add some code when clicking a button in the dropdown.
Lets say if i click the button "template1" in the dropdown i want the following to be inserted:
i came up with
Comment #4
marcoka commentedComment #5.0
(not verified) commented.