Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2008
    Location
    Australia
    Posts
    27
    Plugin Contributions
    3

    Default EZ Page changes between Plain text and HTML causing issues with embedded iframe tags

    Greetings to the forum members.
    If editing an EZ page with the built in editors, I have no issues in plain text mode, however if I change to HTML mode, the iframe tags get modified with an ending of /> instead of a seperate iframe end tag as such - </iframe>

    When this happens, the right sidebar then gets pushed off the page.

    I currently have no issues as I modify the iframe tag and end tag back to </iframe> in plain text mode.

    Just wondering if others were having problems toggling between the two modes.Plain text and HTML

    Cheers
    Oldwolfe.

  2. #2
    Join Date
    Nov 2008
    Location
    Australia
    Posts
    27
    Plugin Contributions
    3

    Default Re: EZ Page changes between Plain text and HTML causing issues with embedded iframe t

    Please note this happens with Define Pages Editor as well.

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: EZ Page changes between Plain text and HTML causing issues with embedded iframe t

    If you incorporate an iframe tag in the html for an ezpage or define page, then do not toggle to html mode after inserting the code, before saving the page.

    Iframe is not a good idea in zencart anyway - particularly in areas that require bi-directional communication, such as payment gateways and some shipping methods. In fact, iframe is fundamentally a bad idea in any dynamic content website... but if it's your choice, then go ahead.

    The "problem" in saving these types of tags (<script> also "misbehaves") is not - I understand - a zencart issue, but the limitations in proprietary html editors used, eg: HTMLArea and/or FCKEditor.
    20 years a Zencart User

  4. #4
    Join Date
    Nov 2008
    Location
    Australia
    Posts
    27
    Plugin Contributions
    3

    Default Re: EZ Page changes between Plain text and HTML causing issues with embedded iframe t

    OK


    Thanks for the reply.


    Cheers
    Oldwolfe

  5. #5
    Join Date
    Nov 2008
    Location
    Australia
    Posts
    27
    Plugin Contributions
    3

    Default Re: EZ Page changes between Plain text and HTML causing issues with embedded iframe t

    Greetings.

    Have confirmed as you suggested that htmlarea editor is the issue.

    You can correct this problem by adding the word


    iframe


    to line 1947 in the hmlarea.js file.

    The name of the function is

    HTMLArea.needsClosingTag = function(el) {


    The </iframe> tag no longer gets stripped when toggling to HTML mode with the editor.

    As this editor is no longer supported, I have provided the change here.

    Cheers
    Oldwolfe

  6. #6
    Join Date
    May 2010
    Posts
    74
    Plugin Contributions
    0

    Default Re: EZ Page changes between Plain text and HTML causing issues with embedded iframe t

    We had the exact same issue. This solution worked great for us. Thanks...even years later.

    The file htmlarea.js is located in editors/htmlarea. It was so easy to fix.

 

 

Similar Threads

  1. HTML Special Character and Plain Text Editor (1.3.8)
    By chadderuski in forum General Questions
    Replies: 2
    Last Post: 16 Aug 2011, 05:53 PM
  2. HTML Editor preview changes to Plain Text with HTML code
    By Morph99 in forum Basic Configuration
    Replies: 5
    Last Post: 3 Jan 2011, 10:12 PM
  3. Plain text is adding HTML tags
    By eVelt in forum General Questions
    Replies: 13
    Last Post: 8 Jul 2010, 10:15 PM
  4. Replies: 7
    Last Post: 23 Feb 2010, 01:21 AM

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