Skip to Content

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

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

Untitled.png (3.0 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 23, 2013 at 04:47 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 02, 2016 at 01:12 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 10, 2016 at 11:02 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.