Adding TinyMCE inside page is the trick.
Show HTML content in editable text area
题
I have a RitchText editor containing HTML tags and I am wondering if I can have a Text Area in my ASPX page displaying all these tags and also it should be editable.
I assume normal textbox is not an option here,
Any suggestions?
解决方案 4
其他提示
check this out... I put it in Console, so it would be easier to undersand:
using System;
using System.Net;
class Program
{
static void Main()
{
string a = WebUtility.HtmlEncode("<html><head><title>T</title></head></html>");
string b = WebUtility.HtmlDecode(a);
Console.WriteLine("After HtmlEncode: " + a);
Console.WriteLine("After HtmlDecode: " + b);
}
}
You can use jquery + jquery UI to transform a normal text tag such as "p" into a textbox, here i built an example:
$(function() {
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
];
$("#tag").hide();
$( "#tags" ).autocomplete({
source: availableTags
});
$("#tag").click(function(){
$("#tags").val($(this).text());
$(this).hide();
$("#tags").show();
});
$("#tags").blur(function() {
$("#tag").text($(this).val());
$(this).hide();
$("#tag").show();
});
Apologies if I've misunderstood you.
If you add a standard 'Richtext Editor' as a field's 'type' in the Umbraco document type - then you can access and edit the html tags within the Umbraco back-office, by clicking on 'html' in the top editor bar while you have your richtext field in focus:
不隶属于 StackOverflow