<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: RichTextEditor with SuperScript and SubScript in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/richtexteditor-with-superscript-and-subscript/qaa-p/12461458#M4667652</link>
    <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;dep&lt;/SPAN&gt;  Thanks a lot for the help. Its working absolutely wonderful. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jul 2021 13:40:16 GMT</pubDate>
    <dc:creator>RainaGoyal3</dc:creator>
    <dc:date>2021-07-08T13:40:16Z</dc:date>
    <item>
      <title>RichTextEditor with SuperScript and SubScript</title>
      <link>https://community.sap.com/t5/technology-q-a/richtexteditor-with-superscript-and-subscript/qaq-p/12461456</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
  &lt;P&gt;I have a requirement in which two custom buttons has to be added in RichtextEditor for SubScript and SuperScript, I am able to add custom buttons but unable to fetch the selected text in richtexteditor. Also once we get the selected text how change it to subscript/superscript.&lt;/P&gt;
  &lt;P&gt;Please help as I am badly stuck in this and unable to find much on this.&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Best Regards,&lt;/P&gt;
  &lt;P&gt;Raina&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 14:51:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/richtexteditor-with-superscript-and-subscript/qaq-p/12461456</guid>
      <dc:creator>RainaGoyal3</dc:creator>
      <dc:date>2021-06-25T14:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: RichTextEditor with SuperScript and SubScript</title>
      <link>https://community.sap.com/t5/technology-q-a/richtexteditor-with-superscript-and-subscript/qaa-p/12461457#M4667651</link>
      <description>&lt;P&gt;Hi Raina,&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The RichTextEditor-Control implements the third-party &lt;A href="https://www.tiny.cloud/tinymce/"&gt;TinyMCE&lt;/A&gt; editor. As far as I can see, it doesn't expose the necessary public methods or attributes to allow for getting the text selection. Note that accessing private members of SAPUI5 objects is against best practice and not recommended. &lt;/P&gt;&lt;P&gt;That said, I don't immediately see an alternative here apart from developing a custom control.&lt;/P&gt;&lt;P&gt;You can directly access the private TinyMCE editor object (_oEditor). Next, you can use the &lt;A href="https://www.tiny.cloud/docs-4x/api/tinymce/tinymce.editorcommands/#execcommand"&gt;execcommand&lt;/A&gt; method to convert the selected text to super- or subscript.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;var oRichTextEditor = sap.ui.getCore().byId("myRTE");&lt;BR /&gt;oRichTextEditor._oEditor.editorCommands.execCommand("Superscript");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;See &lt;A href="https://plnkr.co/edit/Q6rGesQAhDwNonk4?preview" target="_blank"&gt;this example&lt;/A&gt; on Plunker.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Laurens&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 08:25:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/richtexteditor-with-superscript-and-subscript/qaa-p/12461457#M4667651</guid>
      <dc:creator>LaurensDeprost</dc:creator>
      <dc:date>2021-06-28T08:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: RichTextEditor with SuperScript and SubScript</title>
      <link>https://community.sap.com/t5/technology-q-a/richtexteditor-with-superscript-and-subscript/qaa-p/12461458#M4667652</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;dep&lt;/SPAN&gt;  Thanks a lot for the help. Its working absolutely wonderful. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 13:40:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/richtexteditor-with-superscript-and-subscript/qaa-p/12461458#M4667652</guid>
      <dc:creator>RainaGoyal3</dc:creator>
      <dc:date>2021-07-08T13:40:16Z</dc:date>
    </item>
  </channel>
</rss>

