When user enter some information in a input text field, and then he should able to click on icons like B, I, U and so on to make his text to bold/italic/undelined etc .
How can I get that, can anyone help me?
Hi Madhuri,
Bold, italic and underline are all CSS properties, so you could apply a conditional style class to the input (or text widget) when clicking the buttons.
I have tried but not getting the result,
I am trying to make the text bold.
I have taken an onclick action for B icon to enable/disable icon, and applied style classes. Like below
if(isSelectedBold, "font-weight:bold", "form-control")
Here's an example module that shows what I mean.