|
@@ -87,6 +87,7 @@ export default class Conversion {
|
|
|
* module:engine/conversion/upcastdispatcher~UpcastDispatcher|Array.<module:engine/conversion/downcastdispatcher~DowncastDispatcher|
|
|
* module:engine/conversion/upcastdispatcher~UpcastDispatcher|Array.<module:engine/conversion/downcastdispatcher~DowncastDispatcher|
|
|
|
* module:engine/conversion/upcastdispatcher~UpcastDispatcher>} options.dispatcher Dispatcher or array of dispatchers to register
|
|
* module:engine/conversion/upcastdispatcher~UpcastDispatcher>} options.dispatcher Dispatcher or array of dispatchers to register
|
|
|
* under the given name.
|
|
* under the given name.
|
|
|
|
|
+ * @param {module:engine/conversion/downcast-converters~DowncastHelpers} helpers
|
|
|
*/
|
|
*/
|
|
|
register( options ) {
|
|
register( options ) {
|
|
|
if ( this._dispatchersGroups.has( options.name ) ) {
|
|
if ( this._dispatchersGroups.has( options.name ) ) {
|
|
@@ -150,7 +151,7 @@ export default class Conversion {
|
|
|
* conversion.for( 'downcast' ).add( conversion.customConverter( 'insert:paragraph', myConverter ) );
|
|
* conversion.for( 'downcast' ).add( conversion.customConverter( 'insert:paragraph', myConverter ) );
|
|
|
*
|
|
*
|
|
|
* @param {String} groupName The name of dispatchers group to add the converters to.
|
|
* @param {String} groupName The name of dispatchers group to add the converters to.
|
|
|
- * @returns {module:engine/conversion/downcast-converters~DowncastHelpers}
|
|
|
|
|
|
|
+ * @returns {module:engine/conversion/conversion~ConversionHelpers|module:engine/conversion/downcast-converters~DowncastHelpers}
|
|
|
* An object with the `.add()` method, providing a way to add converters.
|
|
* An object with the `.add()` method, providing a way to add converters.
|
|
|
*/
|
|
*/
|
|
|
for( groupName ) {
|
|
for( groupName ) {
|