import { TextStyleAnnotation } from '../../annotations/text-style-annotation';
import { ParagraphFilterStylesStrategy } from './paragraph-filter-styles-strategy';
/**
 * The TitleFilterStylesStrategy class is responsible for filtering and refilling styles for title and subtitle text blocks in the rich text editor.
 */
export class TitleFilterStylesStrategy extends ParagraphFilterStylesStrategy {
  constructor(titleType) {
    super();
    this.type = 'title';
    this.elementTagName = 'div';
    this.classNameToBeAdded = 'v-rte-title';
    this.type = titleType;
    this.classNameToBeAdded = `v-rte-${titleType}`;
    this.stylesToBeFiltered = TextStyleAnnotation.getDefaultStyles(this.type);
  }
}
