major
minor
major
minor
Due to the changes in r315678 in Ticket #25295, TLScript fields are not visible in the Properties view of the BPE Editor.
The DOM node containing the code editor for TLScript, as well as a node for displaying errors when parsing the expression, are wrapped in a Flexbox container. In addition, a CSS selector was added that sets the width of the code editor node to 100%, so that the editor takes up the entire width of the line while still allowing the error display to appear next to it. The selector identifies the TLScript code editor based on the CSS class ` tlscript`.
The CSS class `tlscript` is configured on the `tl:Expr` type via the Java annotation `tl:CssClass`. However, this annotation is only taken into account if the `tl:FormFields` are built using generics with the help of the `tl:EditFactory`.
If this is not the case—as, for example, in the BPE view mentioned above—the CSS class `tlscript` is not set for the `tl:FormMember` of the TLScript expression, and thus a DOM node without the `tlscript` class is created in the corresponding `tl:Control`. As a result, the field is not visible and, more importantly, cannot be edited, since the width of the node is determined by its content, which is empty.
Implementation
The tl:TLScriptCodeEditorControl is always rendered with the CSS class ` tlscript `.
Test
Start BPE and edit the value of a TLScript field in the process editor.