If I register Japanese characters to Subject field of the Hyperlink Manager and open it again, the characters will be broken. Is there a way to display Japanese correctly?
For example: ああああ
1 Answer, 1 is accepted
0
Rumen
Telerik team
answered on 30 Jan 2023, 11:11 AM
Hi Akinori,
You can use the OnClientDomChange client-event to catch the inserted link in the editor and modify its subject query string:
<scripttype="text/javascript">functionOnClientDomChange(editor, args) {
var commandName = args.get_commandName();
var value = args.get_value();
if (commandName == "LinkManager") {
var link = value;
var url = link.href;
var subject = decodeURIComponent(url.split('?')[1].split('=')[1]);
url = url.split('?')[0] + '?subject=' + subject;
link.setAttribute("href", url);
}
}
</script><telerik:RadEditorrunat="server"OnClientDomChange="OnClientDomChange"ID="RadEditor1"></telerik:RadEditor>