diff --git a/src/conversion/model-selection-to-view-converters.js b/src/conversion/model-selection-to-view-converters.js index e192b310b..46bbf7832 100644 --- a/src/conversion/model-selection-to-view-converters.js +++ b/src/conversion/model-selection-to-view-converters.js @@ -57,11 +57,9 @@ export function convertRangeSelection() { *

f^oobar

* ->

f^oobar

* - * By breaking attribute elements like ``, selection is in correct element. See also complementary - * {@link module:engine/conversion/model-selection-to-view-converters~convertSelectionAttribute attribute converter} - * for selection attributes, - * which wraps collapsed selection into view elements. Those converters together ensure, that selection ends up in - * appropriate attribute elements. + * By breaking attribute elements like ``, selection is in correct element. Then, when selection attribute is + * converted, the broken attributes might be merged again, or the position where the selection is may be wrapped + * in different, appropriate attribute elements. * * See also {@link module:engine/conversion/model-selection-to-view-converters~clearAttributes} which does a clean-up * by merging attributes. diff --git a/src/conversion/modelconsumable.js b/src/conversion/modelconsumable.js index f1b3e0075..93d008024 100644 --- a/src/conversion/modelconsumable.js +++ b/src/conversion/modelconsumable.js @@ -120,7 +120,6 @@ export default class ModelConsumable { * modelConsumable.add( modelElement, 'addAttribute:bold' ); // Add `bold` attribute insertion on `modelElement` change. * modelConsumable.add( modelElement, 'removeAttribute:bold' ); // Add `bold` attribute removal on `modelElement` change. * modelConsumable.add( modelSelection, 'selection' ); // Add `modelSelection` to consumable values. - * modelConsumable.add( modelSelection, 'selectionAttribute:bold' ); // Add `bold` attribute on `modelSelection` to consumables. * modelConsumable.add( modelRange, 'range' ); // Add `modelRange` to consumable values. * * @param {module:engine/model/item~Item|module:engine/model/selection~Selection|module:engine/model/range~Range} item @@ -149,7 +148,6 @@ export default class ModelConsumable { * modelConsumable.consume( modelElement, 'addAttribute:bold' ); // Remove `bold` attribute insertion on `modelElement` change. * modelConsumable.consume( modelElement, 'removeAttribute:bold' ); // Remove `bold` attribute removal on `modelElement` change. * modelConsumable.consume( modelSelection, 'selection' ); // Remove `modelSelection` from consumable values. - * modelConsumable.consume( modelSelection, 'selectionAttribute:bold' ); // Remove `bold` on `modelSelection` from consumables. * modelConsumable.consume( modelRange, 'range' ); // Remove 'modelRange' from consumable values. * * @param {module:engine/model/item~Item|module:engine/model/selection~Selection|module:engine/model/range~Range} item @@ -181,7 +179,6 @@ export default class ModelConsumable { * modelConsumable.test( modelElement, 'addAttribute:bold' ); // Check for `bold` attribute insertion on `modelElement` change. * modelConsumable.test( modelElement, 'removeAttribute:bold' ); // Check for `bold` attribute removal on `modelElement` change. * modelConsumable.test( modelSelection, 'selection' ); // Check if `modelSelection` is consumable. - * modelConsumable.test( modelSelection, 'selectionAttribute:bold' ); // Check if `bold` on `modelSelection` is consumable. * modelConsumable.test( modelRange, 'range' ); // Check if `modelRange` is consumable. * * @param {module:engine/model/item~Item|module:engine/model/selection~Selection|module:engine/model/range~Range} item @@ -220,7 +217,6 @@ export default class ModelConsumable { * modelConsumable.revert( modelElement, 'addAttribute:bold' ); // Revert consuming `bold` attribute insert from `modelElement`. * modelConsumable.revert( modelElement, 'removeAttribute:bold' ); // Revert consuming `bold` attribute remove from `modelElement`. * modelConsumable.revert( modelSelection, 'selection' ); // Revert consuming `modelSelection`. - * modelConsumable.revert( modelSelection, 'selectionAttribute:bold' ); // Revert consuming `bold` from `modelSelection`. * modelConsumable.revert( modelRange, 'range' ); // Revert consuming `modelRange`. * * @param {module:engine/model/item~Item|module:engine/model/selection~Selection|module:engine/model/range~Range} item