Azure / api-management-developer-portal

Developer portal provided by the Azure API Management service.
MIT License
490 stars 319 forks source link

Use tabs in text elements #1278

Open ZarTrox opened 3 years ago

ZarTrox commented 3 years ago

Bug description

Currently it is not possible to use tabs in text elements. If tab is pressed the focus on the text element is lost.

If I for example want to present a structure with different indentations like in an JSON element then I have to manually press space bar multiple times for every line. For consistency and usability tabs should be enabled.

In this case I would want to press tab once for "best friend" to align with the others. image

Expected behavior

A tab should be added by pressing the tab button and also from a button in the formatting menu of the text element.


@AnRei123

ghost commented 3 years ago

@ZarTrox, thank you for opening this issue. We will triage it within the next few business days.

AnRei123 commented 3 years ago

To achieve indentations by adding empty spaces only works for bigger screen resolutions. For smaller, screen resolutions it looks inacceptable. The indentation should also work on paragraph level for several lines. Thus, currently, I am not able to type text with a nested JSON format to a text widget. For text with a nested JSON format, I currently need to insert a screenshot! The text of the screenshots is often blurry depending on the screen resolution and the more images are in the media folder the longer migrations take and the more hard it is to maintain the images within the Image Gallery.

ghost commented 3 years ago

@ZarTrox, thank you for requesting this feature.