SAP / openui5

OpenUI5 lets you build enterprise-ready web applications, responsive to all devices, running on almost any browser of your choice.
http://openui5.org
Apache License 2.0
2.96k stars 1.24k forks source link

Missing properties: ShowPrintMargin, IdentedSoftWrap, SoftWrap #3893

Open stefan-riedel-seifert opened 12 months ago

stefan-riedel-seifert commented 12 months ago

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.

tsanislavgatev commented 12 months ago

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

stefan-riedel-seifert commented 12 months ago

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.