/streamhub-editor

JavaScript minimal editor for use with the streamhub sdk.

Primary LanguageJavaScriptMIT LicenseMIT

streamhub-editor

Build Status

Minimal editor for use with streamhub.

Implementing a Subclass

The Editor is itself a subclass of View.

The Editor defines a _i18 property for its display strings that can either be overridden or extended.

The Editor has a few abstract methods:

@param {Object} data
#sendPostEvent

What to do with the comment data (dispatch a DOM event, invoke a service, etc.)

@param {Object} data
#_handlePostFailure = util.abstractMethod;

What to do on error.

@param {Object} data
#_handlePostSuccess = util.abstractMethod;

What to do on success.