Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2004
    Posts
    134
    Thanks
    0
    Thanked 0 Times in 0 Posts

    FCKEditor for CMS

    Hi all,

    I'm using FCKEditor for users' entering files' content. Problem is this WYSIWUG editor is currently working for only HTML content. Suppose I write

    <?php
    echo phpinfo();
    ?>


    it displays

    <!--p
    echo phpinfo();
    -->


    I want it to help edit not only HTML but also PHP, CSS, JS file types.

    Anyone of you've such experience, please reply. Thank you very much.

  • #2
    Regular Coder
    Join Date
    Feb 2005
    Location
    West Midlands, UK
    Posts
    623
    Thanks
    0
    Thanked 0 Times in 0 Posts
    There's some discussion of this on the support pages for the editor over at SF, I found this in under two minutes by googling for FCKEditor so the information's out there if you want to do a little searching.

    Here is one recommendation which is quick and easy:

    I found that if you place HTML comments around your php tags FCK will not convert your tags. FCK will still convert double quotes to &quot; I just use single quotes

    Example
    <!--
    <?php print 'Something'; ?>
    -->


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •