I am using BUEditor for forum and blog topic creation (I particularly like the BBCode implementation I use for forums). However, the only thing stopping me from using BUEditor as the main content editor on my site (for creating stories, pages, panels etc) is the lack of "template" plugin, and buttons for adding things like

elements.

Basically what I need to have is a dropdown list where a content author can select from a list of predefined templates, and also to have the ability for BUEditor to load initially with a default template already loaded.

It would also be nice to have extra buttons for adding certain other html elements such as

, and as in CKEditor, a button that will display the blocks you have in your content such as paragraph blocks etc (you need to look at the CKEditor demo to understand properly what I mean).

From my brief perusal of the BUEditor documentation, I think adding buttons to insert custom elements (

etc) should be easy for me to do myself, as for the rest I think some more expert coding is needed.

Thanks for a great module.

Comments

ufku’s picture

You can easily define buttons inserting templates.
For inserting text on initiation you need to define a postprocess function in a js file or as a tpl button.
An example tpl button(tpl: in title) inserting text on load:

js:
BUE.postprocess.myCustomProcess = function(E, $) {
  if (!E.getContent()) E.setContent('some initial text');
};

You should read bueditor/README.txt for more details on editor API. Check also the editor "Lab" for some examples.

trotskyicepick’s picture

Excellent, will give that a try.