UNPKG

substance

Version:

Substance is a JavaScript library for web-based content editing. It provides building blocks for realizing custom text editors and web-based publishing system. It is developed to power our online editing platform [Substance](http://substance.io).

14 lines (12 loc) 582 B
import IsolatedNodeComponent from './IsolatedNodeComponent' export default class OpenIsolatedNodeComponent extends IsolatedNodeComponent { constructor (parent, props, options) { super(parent, props, options) // HACK: overriding 'closed' IsolatedNodeComponents per se // TODO: on the long term we need to understand if it may be better to open // IsolatedNodes by default and only close them if needed. // The UX is improved much also in browsers like FF. // Still we need to evaluate this decision in the near future. this.blockingMode = 'open' } }