EnsPortal.Util.CodeEditorBase

abstract class EnsPortal.Util.CodeEditorBase

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

Method Inventory

Methods

clientmethod 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()().
clientmethod 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.

Subclasses

Feedback