Thread: TinyMCE Bug???

Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2010
    Location
    Battle Ground, WA
    Posts
    273
    Plugin Contributions
    1

    Default TinyMCE Bug???

    I put this html code in...

    HTML Code:
    <html>
    <head>
    <script type="text/javascript">
    <!--
    var image1=new Image()
    image1.src="firstcar.gif"
    var image2=new Image()
    image2.src="secondcar"
    var image3=new Image()
    image3.src="thirdcar.gif"
    //-->
    </script>
    </head>
    <body>
    <img src="firstcar.gif" name="slide" width="100" height="56" />
    <script>
    <!--
    //variable that will increment through the images
    var step=1
    function slideit(){
    //if browser does not support the image object, exit.
    if (!document.images)
    return
    document.images.slide.src=eval("image"+step+".src")
    if (step<3)
    step++
    else
    step=1
    //call function "slideit()" every 2.5 seconds
    setTimeout("slideit()",2500)
    }
    slideit()
    //-->
    </script>
    </body>
    </html>
    and when I save it, tinymce editor changes it to this

    HTML Code:
    <script type="text/javascript">// <![CDATA[
    var image1=new Image()
    image1.src="firstcar.gif"
    var image2=new Image()
    image2.src="secondcar"
    var image3=new Image()
    image3.src="thirdcar.gif"
    // ]]></script>
    <p><img src="/lfs/admin/firstcar.gif" alt="" width="100" height="56" /></p>
    <script type="text/javascript">// <![CDATA[
    //variable that will increment through the images
    var step=1
    function slideit(){
    //if browser does not support the image object, exit.
    if (!document.images)
    return
    document.images.slide.src=eval("image"+step+".src")
    if (step<3)
    step++
    else
    step=1
    //call function "slideit()" every 2.5 seconds
    setTimeout("slideit()",2500)
    }
    slideit()
    // ]]></script>
    IT'S CHANGING MY CODE!! HOW AM I SUPPOSED TO GET IT WORK!!

    In editors folder I changed my .htaccess to say this:

    HTML Code:
    # but now allow just *certain* necessary files:
    <FilesMatch "\.(gif|jpe?g|png|js|css|html?|xml)$">
      Order Allow,Deny
      Allow from all
    </FilesMatch>

  2. #2
    Join Date
    Jul 2010
    Location
    Battle Ground, WA
    Posts
    273
    Plugin Contributions
    1

    Default Re: TinyMCE Bug???

    Oh and if I use the plaintext editor it works by the way!

  3. #3
    Join Date
    May 2009
    Posts
    17
    Plugin Contributions
    0

    Default Re: TinyMCE Bug???

    Don't know if this will help your problem, but I saw on the support thread someone said to change the following line:

    <FilesMatch "\.(gif|jpe?g|png|js|css|html?|xml)$">


    to:

    <FilesMatch "\.(gif|jpe?g|png|js|css|html|xml)$">

    and all my worries with it seemed to melt away.

  4. #4
    Join Date
    Jul 2010
    Location
    Battle Ground, WA
    Posts
    273
    Plugin Contributions
    1

    Default Re: TinyMCE Bug???

    Now when I press the html button, It says forbidden!

  5. #5
    Join Date
    Jul 2010
    Location
    Boston
    Posts
    139
    Plugin Contributions
    0

    Default Re: TinyMCE Bug???

    I have the same proble where it says forbidden when I try tl look a the code> I am not sure how to approach the issue.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: TinyMCE Bug???

    You should never put <html>, <head> or <body> tags in content that is going into a Zen Cart page. ZC already handles all that, and repeating it can cause errors.

    If you need to get something into the head of a page, use the built-in Zen Cart method which doesn't require editing any files. Look in the forum for jscript_ to find threads which describe it.

    How to properly implement jscript_*.php file for main page?
    Last edited by gjh42; 15 Nov 2010 at 05:30 PM.

 

 

Similar Threads

  1. TinyMCE Bug SOLVED
    By technologystorm in forum Upgrading from 1.3.x to 1.3.9
    Replies: 15
    Last Post: 23 May 2011, 09:47 AM
  2. TinyMce Bug not solved
    By BongoFletch in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 27 Jan 2011, 03:32 AM
  3. tinymce
    By zmzm in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 11 Jun 2010, 11:45 PM
  4. Replies: 3
    Last Post: 31 May 2008, 04:03 PM
  5. TinyMCE
    By covone in forum Customization from the Admin
    Replies: 4
    Last Post: 26 Oct 2006, 12:38 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR