Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthordaelan
    • CommentTimeJan 30th 2008 edited
     
    I'm trying to add the tiny mce wysiwyg text editor to the description text area on the post a job page.

    in order to do this i need to be able to add some javascript the the page.

    if i add it in the publish-write.tpl page i get errors

    Fatal error: Smarty error: [in header.tpl line 29]: syntax error: unrecognized tag 'mode' (Smarty_Compiler.class.php, line 580) in /_includes/smarty/libs/Smarty.class.php on line 1088

    Here is the Javascript i am trying to add

    <script language="javascript" type="text/javascript" src="tiny_mce/tiny_mce.js"></script>
    <script language="javascript" type="text/javascript">
    tinyMCE.init({
    mode : "textareas"
    });
    </script>

    I'm new to using smarty templates.

    can anyone point me in the right direction?

    Thanks
    • CommentAuthordaelan
    • CommentTimeJan 30th 2008
     
    Nevermind. I figured it out

    {literal}
    <script language="javascript" type="text/javascript">
    tinyMCE.init({
    mode : "textareas"
    });
    </script>
    {/literal}