removeFormattingFromSelection() {
    let selectedNodes = selectionSvc.selectionReader.getSelectedNodes();

    if (selectedNodes.length === 1) {
      let singleNode = selectedNodes[0];
      if (singleNode.nodeType === Node.TEXT_NODE) {
        singleNode = singleNode.parentNode;
      }
      selectedNodes = [singleNode];
    }

    for (const backgroundNode of selectedNodes) {
      this._checkAndRemoveFormatting(backgroundNode);
    }
  }
/**
   * Removes the background color from all nodes
   * in the selection where a theme background color was found
   */
Removes the background color from all nodes
in the selection where a theme background color was found
Removes the background color from all nodes in the selection where a theme background color was found
removeFormattingFromSelection() {
    let selectedNodes = selectionSvc.selectionReader.getSelectedNodes();
    if (selectedNodes.length === 1) {
      let singleNode = selectedNodes[0];
      if (singleNode.nodeType === Node.TEXT_NODE) {
        singleNode = singleNode.parentNode;
      }
      selectedNodes = [singleNode];
    }
    for (const backgroundNode of selectedNodes) {
      this._checkAndRemoveFormatting(backgroundNode);
    }
  }
removeFormattingFromSelection ( ) { let selectedNodes = selectionSvc . selectionReader . getSelectedNodes ( ) ; if ( selectedNodes . length === 1 ) { let singleNode = selectedNodes [ 0 ] ; if ( singleNode . nodeType === Node . TEXT_NODE ) { singleNode = singleNode . parentNode ; } selectedNodes = [ singleNode ] ; } for ( const backgroundNode of selectedNodes ) { this . _checkAndRemoveFormatting ( backgroundNode ) ; } }
Removes the background color from all nodes
 in the selection where a theme background color was found
Removes the background color from all nodes in the selection where a theme background color was found