
10-07-2007, 09:33 PM
|
 |
|
|
Join Date: Apr 2007
Location: Degabah Swamp
Posts: 293
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Well I guess for something "simplier" I will switch to the built in editor but would only want the quick reply editor and remove some buttons.
Code:
// in my php fle...
// set up the description textarea using the quick reply editor style
$show['wysiwyg'] = ($setting['allow_bbcode'] ? is_wysiwyg_compatible('', 'qr') : 0);
$istyles_js = construct_editor_styles_js();
$show['qr_require_click'] = 0;
$editorid = construct_edit_toolbar('', 0, 7, 1, 1, '', 'qr');
$messagearea = "
<script type=\"text/javascript\">
<!--
var require_click = false;
var threaded_mode = 1;
var is_last_page = false;
// -->
</script>
$messagearea
";
// ...
Code:
// template
// ...
$messagearea
// ...
This works correctly for the width but now I have the editor buttons to edit and they also dont work at all. They show the tooltips correctly but no action or mouseover style changes either. Font, size and color dropdowns wont drop for ex.
Oh and I get a js error "vb_Text_Editor" is undefined. I dont have it anywhere in my code but perhaps it somewhere in one of the function includes or js calls in them.
|