Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

TinyMCE

  • 12-06-2007 01:42AM
    #1
    Registered Users, Registered Users 2 Posts: 1,991 ✭✭✭


    Has anyone used TinyMCE before, i have the editor installed and working fine but when i try to display a message i have posted it comes up like below(Its ment to be a emotion of crying), i have the two JS lines of code added to the page! Any ideas?:
    \"Cry\"


Comments

  • Registered Users, Registered Users 2 Posts: 3,594 ✭✭✭forbairt


    never used it ... but are the \'s meant to be there ... is there some configuration issue with stripslashes / addslashes somewhere ? :)


  • Closed Accounts Posts: 8,478 ✭✭✭GoneShootin


    Can you show us your TinyMCE config file? This may be of help


  • Registered Users, Registered Users 2 Posts: 1,991 ✭✭✭Ziycon


    Can you show us your TinyMCE config file? This may be of help
    I just extracte dthe TinyMCE folder into my web directroy, added the editor to the page, when i post a message it wont display the post correctly!


  • Registered Users, Registered Users 2 Posts: 1,991 ✭✭✭Ziycon


    This is what i have in the head of every page that is either an editor or displaying TinyMCE stuff! I was thinking it may have something to do with the - mode: "textareas", line!???
    <script language="javascript" type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
    <script language="javascript" type="text/javascript">
    tinyMCE.init({
    	mode : "textareas",
    	theme : "advanced",
    	plugins : "style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",
    	theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,fontselect,fontsizeselect",
    	theme_advanced_buttons2 : "cut,copy,paste,|,link,unlink,anchor,image,cleanup,help,forecolor,iespell,emotions,|",
    	theme_advanced_buttons3 : "",
    	theme_advanced_toolbar_location : "top",
    	theme_advanced_toolbar_align : "left",
    	extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
    	template_external_list_url : "example_template_list.js"
    });
    </script>
    <script language="JavaScript">
    


  • Registered Users, Registered Users 2 Posts: 1,991 ✭✭✭Ziycon


    Got it sorted! Thanks for the help. I used stripslashes from the variable returned and its working fine now. Thanks.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 3,594 ✭✭✭forbairt


    Ziycon wrote:
    Got it sorted! Thanks for the help. I used stripslashes from the variable returned and its working fine now. Thanks.

    cool thought it was something like that .. but haven't used tinyMCE before :) so I couldn't say for sure

    installed it today to play with and it looks quite impressive for custom editors ...


Advertisement