Sitecore not resolving rich text editor URLS in page renders
By : Rupal Sharma
Date : March 29 2020, 07:55 AM
will help you This will be the default behaviour if you are using sc:fld to render field values. This is legacy behaviour left from Sitecore 5 which did not replace the guids in item links. If you want to use Sitecore 6's new functionality, you must use sc:field instead
|
Opening Rich Text Editor in custom field of Sitecore Content Editor
By : Ami
Date : March 29 2020, 07:55 AM
will help you Had to decompile the Sitecore.Kernel DLL in order to figure this out. First thing is to spin off a call from the Context.ClientPage object code :
switch (message.Name)
{
case "richtext:edit":
Sitecore.Context.ClientPage.Start(this, "EditText");
break;
}
protected void EditText(ClientPipelineArgs args)
{
Assert.ArgumentNotNull(args, "args");
if (args.IsPostBack)
{
if (args.Result == null || args.Result == "undefined")
return;
var text = args.Result;
if (text == "__#!$No value$!#__")
text = string.Empty;
Value = text;
UpdateHtml(args); //Function that executes Javascript to update embedded rich text frame
}
else
{
var richTextEditorUrl = new RichTextEditorUrl
{
Conversion = RichTextEditorUrl.HtmlConversion.DoNotConvert,
Disabled = Disabled,
FieldID = FieldID,
ID = ID,
ItemID = ItemID,
Language = ItemLanguage,
Mode = string.Empty,
Source = Source,
Url = "/sitecore/shell/Controls/Rich Text Editor/EditorPage.aspx",
Value = Value,
Version = ItemVersion
};
UrlString url = richTextEditorUrl.GetUrl();
handle = richTextEditorUrl.Handle;
ID md5Hash = MainUtil.GetMD5Hash(Source + ItemLanguage);
SheerResponse.Eval("scContent.editRichText(\"" + url + "\", \"" + md5Hash.ToShortID() + "\", " +
StringUtil.EscapeJavascriptString(GetDeviceValue(CurrentDevice)) + ")");
args.WaitForPostBack();
}
|
Rich Text Editor (YUI Simple Text Editor used) not sending data to next page
By : CSharpDev
Date : March 29 2020, 07:55 AM
Hope that helps The saveHTML() method you used does not seem to save the value to the textarea element. And because the browser doesn't care about YUI Editor and just submits what is there already in the textarea (which is null), it submits the input as null.. You should set the value of the textarea to the editor value so the browser will submit that value instead of null.. Which can be achieved using this little line: code :
document.getElementsById("msgpost").value = html;
|
Sitecore 8.2: Why does the Rich Text editor wrap internal Sitecore-links in dual anchor-tags?
By : kiran kumar
Date : March 29 2020, 07:55 AM
will help you Found a solution - in short, remove the following code from the bottom of the file ~/sitecore/shell/Controls/Rich Text Editor/RTEfixes.js : code :
(function () {
if (!window.Telerik) return;
var $T = Telerik.Web.UI;
var Editor = $T.Editor;
Editor.UnlinkCommand = function (editor, options) {
var settings = {
tag: "a",
altTags: []
};
Editor.UnlinkCommand.initializeBase(this, [editor, settings, options]);
};
Editor.UnlinkCommand.prototype = {
getState: function (wnd, editor, range) {
var states = Editor.CommandStates;
var result = Editor.UnlinkCommand.callBaseMethod(this, "getState", [wnd, editor, range]);
return result === states.Off ? states.Disabled : states.Off;
}
};
Editor.UnlinkCommand.registerClass("Telerik.Web.UI.Editor.UnlinkCommand", Editor.InlineCommand);
Editor.UpdateCommandsArray.Unlink = new Editor.UnlinkCommand();
})();
|
Sitecore rich text field in page editor is not editable when it contains HTML formatting
By : qingning wang
Date : March 29 2020, 07:55 AM
may help you . This is a known issue when you put an editable rich text inside a tag. There are plenty of html tags which are not allowed inside a tag. That why your browser closes tag and break the functionality of editable rich text.
|