Although BUEditor is a Drupal project, it is also avaliable to be used in non-drupal sites or in Drupal without enabling it as a module.

To run BUEditor (5.x) in a page, you should:

  1. Include bueditor.css as a stylesheet
  2. Include bueditor.js and optionally js files in library folder to use the functions defined by them.
  3. define editor.path (editor folder path relative to the page)
  4. define editor.buttons (an array including editor buttons.)
  5. assign the class name "editor-textarea" to any textarea that should be processed. You can also use editor.processTextarea(T) method any time, where the T is the textarea object

editor.buttons is an array of arrays having the structure;
editor.buttons = [ [button-1], [button-2], ..., [button-N] ];
and each button is an array consisting of title, content, icon(caption), accesskey in order.
editor.buttons = [ [title-1content-1icon-1key-1], ..., [title-Ncontent-Nicon-Nkey-N] ];

An example page header to run BUEditor:

<style type="text/css" media="all">@import "/bueditor/bueditor.css";</style>
<
script type="text/javascript" src="/bueditor/bueditor.js"></script>
<
script type="text/javascript" src="/bueditor/library/default_buttons_functions.js"></script>
<
script type="text/javascript">
editor.path = '/bueditor/';//required for displaying the icons in icons folder.
editor.buttons = [
  [
'Bold', '<strong>%TEXT%</strong>', 'bold.png', 'B'], //Bold
 
['Italic', '<em>%TEXT%</em>', 'italic.png', 'I'], //Italic
 
['Preview', 'js: eDefPreview();', 'preview.png', 'P'] //Preview
];
<
/script>

Hi I would like to use

Hi
I would like to use Bueditor in my own webpage, but I not use drupal, could you publish a full example of implementing Bueditor in a php or html page?
I have tried to do it by myself with no success.
many thanks

Under supervision of Drupal :)