Skip to content

Commit afb2a04

Browse files
author
JM Alarcón
committed
Add support for scripts in the TextBox widget
The previous TextBox widget allowed to include scripts in its contents so that you could use it as a means to add some interactive content in every page in a simple way. The new version doesn't allow this by default. I've added a line to the TinyMCE HTM Editor so that it allows iframes and scripts in its contents.
1 parent a794ebd commit afb2a04

File tree

1 file changed

+2
-1
lines changed
  • BlogEngine/BlogEngine.NET/Custom/Widgets/TextBox

1 file changed

+2
-1
lines changed

BlogEngine/BlogEngine.NET/Custom/Widgets/TextBox/edit.cshtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
relative_urls: false,
4646
browser_spellcheck: true,
4747
paste_data_images: true,
48-
encoding: 'xml'
48+
encoding: 'xml',
49+
extended_valid_elements: 'iframe[src|style|width|height|scrolling|marginwidth|marginheight|frameborder],script[src|type|async]'
4950
});
5051
</script>
5152
</head>

0 commit comments

Comments
 (0)