BoldSign®Effortlessly integrate e-signatures into your app with the BoldSign® API. Create a sandbox account!
hi.
I want to get the selected string while preserving case.
but method return always lower cases.
Am I using the method incorrectly, or is there another method that does what I want?
Thank you.
I was wrong, GetSelectionAsync gets the correct case.
But when I set the id in the code below, it is set to all lowercase in the HTML.
string selectedValue = await this.RteObj.GetSelectionAsync();
await this.RteObj.ExecuteCommandAsync(CommandName.FormatBlock, $“h2 id=‘{selectedValue}’”);
I've googled the problem and some places say it's a quirk of HTML and some places say to manipulate the DOM with Javascript to fix it, but I'm believe RTE has options of its own.
Incidentally, what I ultimately want is for the selected text to have its own content as its own id.
Thank you.
|
|
It's work! Thank you! you are my hero