Files
Desktop/ts/quill/block/blot.tsx
2025-09-19 13:05:51 -07:00

15 lines
384 B
TypeScript

// Copyright 2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import BlockBlot from '@signalapp/quill-cjs/blots/block.js';
export class DirectionalBlot extends BlockBlot {
static override tagName = 'div';
static override create(value: string): HTMLElement {
const node = super.create(value);
node.setAttribute('dir', 'auto');
return node;
}
}