import { TextStyleAnnotation } from '../../annotations/text-style-annotation';
import { ParagraphFilterStylesStrategy } from './paragraph-filter-styles-strategy';
/**
 * The HeadingFilterStylesStrategy class is responsible for filtering and refilling styles for heading text blocks (h1 to h6) in the rich text editor.
 */
export class HeadingFilterStylesStrategy extends ParagraphFilterStylesStrategy {
  constructor(level) {
    super();
    this.type = 'heading-1';
    this.elementTagName = 'h1';
    this.type = `heading-${level}`;
    this.elementTagName = `h${level}`;
    this.stylesToBeFiltered = TextStyleAnnotation.getDefaultStyles(this.type);
  }
}
