radeditor

RadEditor requires a HttpHandler registration in web.config

爱⌒轻易说出口 提交于 2019-12-24 07:19:46
问题 When I add this code to my aspx , <telerik:RadEditor ID="REWelcome" runat="server" AutoResizeHeight="True" Width="500px" ToolbarMode="Floating"> <Content> </Content> <TrackChangesSettings CanAcceptTrackChanges="False"></TrackChangesSettings> </telerik:RadEditor> And I got this error message , '~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. How can I solve it ? 回答1: In your web.config - add the following to the

How can I validate text as being valid HTML?

老子叫甜甜 提交于 2019-12-09 19:12:15
问题 I'm using an older version of Telerik's Editor control, and storing the text that's input in a SQL database, then displaying the HTML later. Is there any way in ASP.NET (2.0) to validate a string as being valid HTML before saving to my database? Thanks! 回答1: You could start here: C# XHTML Validator Or here (regexes): Regular Expressions Library - entries tagged with "HTML" Or here ;) Google 回答2: regexes can be slow and cpu intensive, W3C has an open source tool that you could use http://www

Changing the value of a Telerik RadEditor with Javascript/jQuery

房东的猫 提交于 2019-12-08 02:25:33
问题 I'm trying to manually clean the HTML of a Telerik RadEditor with Javascript but I can't seem to find the correct place to store the value so that it gets saved on post back. Here's the JS I have: $(function () { jQuery.fixHash = function ($html) { // modify $html return $html; }; $("#adminEditingArea input[id$='SaveButton']").unbind("click").click(function () { $("iframe[id$='_contentIframe']").trigger("save"); // call .net postback return false; }); }); var editorSaveEventInit = false;

Changing the value of a Telerik RadEditor with Javascript/jQuery

大兔子大兔子 提交于 2019-12-06 07:21:35
I'm trying to manually clean the HTML of a Telerik RadEditor with Javascript but I can't seem to find the correct place to store the value so that it gets saved on post back. Here's the JS I have: $(function () { jQuery.fixHash = function ($html) { // modify $html return $html; }; $("#adminEditingArea input[id$='SaveButton']").unbind("click").click(function () { $("iframe[id$='_contentIframe']").trigger("save"); // call .net postback return false; }); }); var editorSaveEventInit = false; function InitSaveEvent() { if (!editorSaveEventInit) { var $EditFrames = $("iframe[id$='_contentIframe']");