|
@@ -69,7 +69,7 @@ export default class ListStyleEditing extends Plugin {
|
|
|
model.document.registerPostFixer( fixListStyleAttributeOnListItemElements( editor ) );
|
|
model.document.registerPostFixer( fixListStyleAttributeOnListItemElements( editor ) );
|
|
|
|
|
|
|
|
// Set up conversion.
|
|
// Set up conversion.
|
|
|
- editor.conversion.for( 'upcast' ).add( upcastListItem() );
|
|
|
|
|
|
|
+ editor.conversion.for( 'upcast' ).add( upcastListItemStyle() );
|
|
|
editor.conversion.for( 'downcast' ).add( downcastListStyleAttribute() );
|
|
editor.conversion.for( 'downcast' ).add( downcastListStyleAttribute() );
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -92,7 +92,7 @@ export default class ListStyleEditing extends Plugin {
|
|
|
//
|
|
//
|
|
|
// @private
|
|
// @private
|
|
|
// @returns {Function}
|
|
// @returns {Function}
|
|
|
-function upcastListItem() {
|
|
|
|
|
|
|
+function upcastListItemStyle() {
|
|
|
return dispatcher => {
|
|
return dispatcher => {
|
|
|
dispatcher.on( 'element:li', ( evt, data, conversionApi ) => {
|
|
dispatcher.on( 'element:li', ( evt, data, conversionApi ) => {
|
|
|
const listParent = data.viewItem.parent;
|
|
const listParent = data.viewItem.parent;
|