openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Missing properties: ShowPrintMargin, IdentedSoftWrap, SoftWrap

Open stefan-riedel-seifert opened this issue 2 years ago • 3 comments

SAPUI5 and OpenUi5 uses the ACE-Code-Editor-Contril in behind. The Ace-Control has musch mor properties as encapsulated in SAPUI5/OpenUi5, so for example: ShowPrintMargin (<> 80, i.e. the default entry), IdentedSoftWarp = off, SoftWarp = Margin.

The most used place in SAP to store text is SAPScript, which comes with two line lengths: 72 in SAPScript editor and 132 via API. To have a 1:1 solution is, it may be beneficial to have exactly the 3 missing properties. Because the font-family may be fix, the font-size should be adjustable.

stefan-riedel-seifert avatar Nov 09 '23 14:11 stefan-riedel-seifert

Hello @stefan-riedel-seifert ,

Can you provide more information about which part of openui5 are you using that is missing functionality?

Maybe provide an example?

Best Regards, Tsanislav

tsanislavgatev avatar Nov 10 '23 07:11 tsanislavgatev

Hi Tsanislav,

no problem. Open this link: https://ace.c9.io/build/kitchen-sink.html

On the left side, you may set attributes: image The opposite: https://sapui5.hana.ondemand.com/#/api/sap.ui.codeeditor.CodeEditor The mentioned attributes/properties are not available by constructor/methods.

stefan-riedel-seifert avatar Nov 10 '23 16:11 stefan-riedel-seifert