* Typings: Added editor parameter to onStore
Added an optional parameter to onStore in the storage manager. This is in accordance with the common use case (https://grapesjs.com/docs/modules/Storage.html#common-use-cases) - HTML code with project data
* Typings: OnStore editor non-optional
* Propagated editor to onStore in Remote Storage
* wrap `ParserHtml().parseStyle` around a class method
currently when the model is extended via the `.extend` method, the `parseStyle`
property is "hoisted" from the parent to the child. ideally, it should
be be located on the parent which is the `prototype` of the child. the
consequence of this is that when you run:
`Object.hasOwnProperty.call(child, 'parseStyle')`, you get `true`.
this is problematic as `parseStyle` is required by `setStyle` of
`Dom_Components::Model::Component` which expects `parseStyle` to exist
on its prototype (`StyleableModel`). But `parseStyle` is "hoisted" to be the property
of any component that extends `Dom_Components::Model::Component`, thus, `this.parseStyle` will always be
`undefined` when its called by any method that exists in objects that
are lower in the prototypal
chain than the topmost object (where `parseStyle` is defined).
If `setStyle` is called further down the prototypal chain, it throws the
following error: `"this.parseStyle is not a function"`
* fix: prevent requesting a new parser on each parse
config dragMode describe would be 'translate' | 'absolute' and not boolean.
it cause wrong alert when use typescript.
Co-authored-by: Artur Arseniev <artur.catch@hotmail.it>