Learning
Documentation
Community
Open Exchange
Global Masters
Home / Class Reference / ENSLIB namespace / EnsPortal.Util.CodeEditorBase
Private  Storage   

EnsPortal.Util.CodeEditorBase


abstract class EnsPortal.Util.CodeEditorBase

Base class to implement common code editor code to allow for code indentation and similar functionality.

Inventory


Parameters Properties Methods Queries Indices ForeignKeys Triggers
2


Summary


Methods
codeKeyPress getPrevWhitespace

Subclasses
EnsPortal.BPLEditor EnsPortal.DTLEditor EnsPortal.Dialog.BusinessProcessValueEditor

Methods


• method codeKeyPress(zenControl, evt) [ Language = javascript ]
Keypress handler for Zen textarea controls which automatically inserts the indentation used on the previous line of the control when the user hits the Enter key. Note that the actual whitespace determination is performed in getPrevWhitespace().
• method getPrevWhitespace(previousData) [ Language = javascript ]
Helper method to indicate what the indentation for the last line in previousData was. If the line didn't have any indentation, two space characters are returned.