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:
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-1, content-1, icon-1, key-1], ..., [title-N, content-N, icon-N, key-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