Jump to content

Recommended Posts

Posted

Hello!

If you run this code:

UniHTMLFrame1.HTML.Text := '\\';

Only one character will be inserted into the frame.

I traced the code of the TUniCustomHTMLFrame class and the ConvertHTMLTxt function - everything is normal there. But when receiving such a string in the browser in the Update function of the module ext-all.js two slashes are converted into one.

\f 
turned into an unprintable symbol.

 

Posted

TUniGenericControl is suitable for me.

  UniSession.AddJS('const range = document.createRange();');
  UniSession.AddJS(Format('range.selectNode(document.getElementById("%s"));', [UniGenericControl1.Name]));
  UniSession.AddJS(Format('const fragment = range.createContextualFragment("%s");', [R]));
  UniSession.AddJS(Format('document.getElementById("%s").appendChild(fragment);', [UniGenericControl1.Name]));


Thanks!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...