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
     
    I want to get rid of the textile formatting and add the ability for the user to format the text using the tiny mce WYSIWYG text editor.

    I have the editor implemented but when i format the text and submit the form the html formatting that tiny mce adds gets stripped out.

    Can anyone tell me where this happens so i can disable it?

    Thanks
    • CommentAuthordaelan
    • CommentTimeFeb 12th 2008
     
    anyone?

    i just need to be able to use html formatting in the description field.
    • CommentAuthordaelan
    • CommentTimeFeb 14th 2008
     
    I figured it out.

    in function.escape.php

    $GLOBALS[$variable] = $db->real_escape_string(strip_tags($value));

    striptags($value) is what takes out the html formatting.
  1.  
    This is what I was looking for to implement tinymce formats!

    But I get undefined variable errors after disabling it.

    Would you mind to share a few lines of your codes on this problem?
  2.  
    Didn't you get undefined variable errors after removing that line?

    I'm getting this error and can not go to step 2...
  3.  
    ok, I figured out. By doing like in the following, you can use HTML tags listed below within description field, with limiting other HTML tags.

    $GLOBALS[$variable] = $db->real_escape_string(strip_tags($value,'<a><strong><em><p><ul><li><ol><img>'));