title: how to apply the style properties dynamically like bold, italic and font size when i select the particular icon?
body: <p>I want to turn the text area into a rich text editor inside Angular. So that when I click on the icon I want to apply the property to the selected text inside the textarea. </p>
  
  <p>How can I achieve this by using angular6 and typescript? please help me. Thanks in advance.</p>
  
  <p><a href="https://i.stack.imgur.com/0dALs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0dALs.png" alt="enter image description here"></a>.</p>