signal-desktop/ts/quill/block/blot.tsx
2025-01-28 09:31:42 -08:00

14 lines
381 B
TypeScript

// Copyright 2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import BlockBlot from '@signalapp/quill-cjs/blots/block';
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;
}
}