Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2006
    Posts
    26
    Plugin Contributions
    0

    Default html code changed when saving in define pages

    When I place code into the define pages using the plain text editor, click "save" everything works fine. However, when the client attempts to edit the page using the html editor, clicks "save," the code is automatically changed.

    Example:
    <script type="text/javascript">
    new fadeshow(fadeimages, 400, 300, 1, 2000, 0)
    </script>


    becomes
    <script type="text/javascript"></script>

    Is there a way to prevent this from happening?

  2. #2
    Join Date
    Jul 2005
    Location
    Brooklyn NY
    Posts
    511
    Plugin Contributions
    0

    Default Re: html code changed when saving in define pages

    what HTML editor are they using the one that came with Zencart? And have you tried to change it on your computer using the same editor?

  3. #3
    Join Date
    Sep 2006
    Posts
    26
    Plugin Contributions
    0

    Default Re: html code changed when saving in define pages

    Am using the stock ZenCart editor.

    When editing on my computer it also removes the code.

  4. #4
    Join Date
    Jan 2008
    Location
    Portland, Oregon USA
    Posts
    350
    Plugin Contributions
    0

    Default Re: html code changed when saving in define pages

    Try this.

    Make a backup first.

    Download the define page to your computer, then open it with notepad++, make your edit, save it on your computer then ftp it back to your site.

    See if that works.
    Doug

  5. #5
    Join Date
    Sep 2006
    Posts
    26
    Plugin Contributions
    0

    Default Re: html code changed when saving in define pages

    I appreciate the response, and that answer is great for you or me, but for the client who is web illiterate and does not have ftp access or knowledge, there should be a better fix. It seems to be a common problem.

  6. #6
    Join Date
    Jan 2008
    Location
    Portland, Oregon USA
    Posts
    350
    Plugin Contributions
    0

    Default Re: html code changed when saving in define pages

    I have to ask, although none of my business, if your client is web illiterate, why are they trying to embed html script into pages?

    And you know, before every edit you have to CMOD those define_pages to 777 and after edit CMOD them back to 644 - IMHO your client had better be able to do that or you run a security risk.

    Now, have you tried FCKeditor. I know it makes a few 'modifications' but it might work for you. Besides, it's a whole lot easier to use than HTMLArea.
    Doug

 

 

Similar Threads

  1. Define Pages Editor not saving changes
    By jharper in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 10 Jan 2009, 03:25 AM
  2. Define Pages Editor Not Saving
    By redukdaz in forum Basic Configuration
    Replies: 1
    Last Post: 23 Oct 2008, 11:06 PM
  3. HTML editor Saving code wrong on me
    By cshart in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 16 Nov 2007, 10:54 PM
  4. define pages editor not saving anything...
    By chrisnasah in forum General Questions
    Replies: 4
    Last Post: 25 Sep 2007, 03:50 PM
  5. Replies: 2
    Last Post: 20 Nov 2006, 09:46 PM

Bookmarks

Posting Permissions

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