@Links & Chronos thanks for you're fast reply!!! Greatly appreciated
Also evertsemeijn for posting all the steps
!
It's working at my test site. So I'm posting all the steps I've followed until now. Hopefully In chronical order.
1.
In root_templates/footer.tpl
replace
with
Code: {literal}
<script type="text/javascript" src="{/literal}{$BASE_URL}{literal}js/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "textareas",
editor_selector : "mceEditor",
theme: "advanced",
plugins: "advhr,advimage,table,emotions,media,insertdatetime,directionality",
theme_advanced_toolbar_align: "left",
theme_advanced_toolbar_location: "top",
theme_advanced_buttons1: "bold,italic,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,fontsizeselect,separator,bullist,numlist,separator,link,unlink,separator,undo,redo",
theme_advanced_buttons2: "",
theme_advanced_buttons3: "",
height: "500px",
width: "420px"
});
</script>
{/literal}
</body>
</html>
2
In root_Templates/footer.tpl
I've changed the
Code:
<script type="text/javascript" src="{/literal}{$BASE_URL}{literal}js/tiny_mce/tiny_mce.js"></script>
with
Code:
<script type="text/javascript" src="{/literal}{$BASE_URL_ADMIN}{literal}js/tiny_mce/tiny_mce.js"></script>
3.
In root_includes/function.escape.php
Code:
$GLOBALS[$variable] = $db->real_escape_string(strip_tags($value));
with
Code:
$GLOBALS[$variable] = $db->real_escape_string(strip_tags($value,'<a><strong><em><ul><p><li><ol><span>'));
4.
In root_templates/publish-write.tpl
replace
with
Code:
id="description" class="mceEditor"
5.
In root page_verify.php
Code:
$jobs['description'] = str_replace(array("\r\n", "\r", "\n"), "<br />", $jobs['description']);
with
Code:
$jobs['description'] = str_replace(array("\r\n", "\r", "\n"), "", $jobs['description']);
6.
In root_templates/publish-write.tpl
before this line
Code:
$("#publish_form").validate({
add this
Code:
$('#submit').click(function()
{
tinyMCE.triggerSave();
});
7.
putting TinyMCE(package) copy/paste from the admin folder
root/js/
put the code around line 111
footer.tpl
Code:
{/literal}{$BASE_URL}{literal}js/tiny_mce/tiny_mce.js
instead of
Code:
{/literal}{$BASE_URL_ADMIN}{literal}js/tiny_mce/tiny_mce.js
Of course this is not perfect but it works for me now do you've got a comment on this I am willing to edit this post. Thanx again for the support!!
As a bonus I am sending the link for the Tiny MCE extra buttons
With thanks to Tokyoj http://www.jobberbase.com/forum/topic51
ditor.html
In root_templates/footer.tpl
Buttons 1 for the first row
buttons 2 for the second row
Buttons 3 for the third row
add or replace in between ""
Code: theme_advanced_buttons1: "bold,italic,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,fontsizeselect,separator,bullist,numlist,separator,link,unlink,separator,undo,redo",
theme_advanced_buttons2: "",
theme_advanced_buttons3: "",
look at line 10 & 14 for the options
http://tinymce.moxiecode.com/examples/full.php
for the full example look at
http://tinymce.moxiecode.com/examples/full.php
good luck!!

Last edited by chrisdegrote (2009-06-29 19:35:14)