Unplanned
Last Updated: 14 Aug 2025 14:01 by Michael
Michael
Created on: 14 Aug 2025 14:01
Category: Editor
Type: Bug Report
1
Head Content Remains Using viewHtml Editor tool

Bug Report

When the content of the Kendo UI Editor contains the head, the code within it is displaying with the use of the viewHtml.

Reproducible

  1. Go to this Progress Kendo UI Dojo
  2. Select the viewHtml tool.

Current Behavior

The content within the head will be displayed.

Workaround

Manually remove the tags from the IFrame (Dojo).

            var iframe = $('.k-iframe') // Identify the iframe by its class
            var iframeContent = iframe.contents() // Access the content of the iframe
            var metaElement = iframeContent.find('meta') // Traverse down the DOM tree to reach the <meta> element
    
            metaElement.remove()// Remove all the <meta> elements

Environment

0 comments