cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove the only one button ( bold or Itlaic ) from the toolbar of UI element formated text edit in webdynpro abap

om_awasthi1
Participant
0 Kudos

Hi All,

I want to remove only one button from the UI element - formatted text edit in abap webdynpro . Please let me know if that is feasible and how we can achieve the same .  Please find the screen shot for more clarity .

Thanks

OM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

With normal and supported way, you cannot remove only the bold button.

Some "hacking" can only help in this case, but SAP does not recommend it.

Thanks,

Gabor

thomasnelissen
Participant
0 Kudos

I encountered this post while searching for the same problem and found a solution that i wanted to share.

Create a style.css file with the following code:

*[id*="_tbar_bld"] {

    display:none;

}

Import the file as a MIME-object in your webdynpro component.

Create a HtmlContainer element in the beginning of your view and name it CUSTOM_CSS.

In the HtmlContainer, insert a CSS style with source = style.css

Run your webdynpro application, the Bold button should not be visible anymore. The css property will hide the button.

If you are looking to hide other buttons as well: here are the HTML elements you need to hide:

*[id*="_tbar_bld"] -> Bold

*[id*="_tbar_itl"] -> Italic

*[id*="_tbar_idnt"] -> increase indent

*[id*="_tbar_odnt"] -> decrease indent

*[id*="_tbar_olist"] -> ordered list

*[id*="_tbar_ulist"] -> unordered list

*[id*="_tbar_head1"] -> Header 1

*[id*="_tbar_head2"] -> Header 2

*[id*="_tbar_head3"] -> Header 3

*[id*="_tbar_paragraphSpacing"] -> Paragraph Spacing

Former Member
0 Kudos

Hi,

I am not sure whether we can hide the single button in the tool bar as there is not methods in the class for Formatting text edit differentiates the toolbar buttons.But there are options where you can hide the toolbar completely.

Best regards,

Arun Krishnamoorthy

om_awasthi1
Participant
0 Kudos

Hi Arun ,

Thanks for the reply . I am looking for disabling or hiding one of the button which is present in the toolbar . Please let me know if we can make changes to the UI element of any WDA .

Thanks,

Om

Former Member
0 Kudos

Hello Om,

IMHO you cannot remove only one button from formatted text edit UI element in wdp.Because it is built-in feature of that UI element.

Thanks

Katrice