bug in elementor
-
Hello,
This issue occurs only on some websites.
When the Heading element exists on a page in Elementor, the Elementor editor displays the following error:
TypeError: elementor.helpers.sanitize is not a function
The reason for this is the presence of the following code within this element:
<#
let title = elementor.helpers.sanitize( settings.title, { ALLOW_DATA_ATTR: false } );if ( '' !== settings.link.url ) { title = '<a href="' + _.escape( settings.link.url ) + '">' + title + '</a>'; } view.addRenderAttribute( 'title', 'class', [ 'elementor-heading-title' ] ); if ( '' !== settings.size ) { view.addRenderAttribute( 'title', 'class', [ 'elementor-size-' + settings.size ] ); } else { view.addRenderAttribute( 'title', 'class', [ 'elementor-size-default' ] ); } view.addInlineEditingAttributes( 'title' ); var headerSizeTag = elementor.helpers.validateHTMLTag( settings.header_size ), title_html = '<' + headerSizeTag + ' ' + view.getRenderAttributeString( 'title' ) + '>' + title + '</' + headerSizeTag + '>'; print( title_html ); #> <?php }
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.