Skip to content

Inline styles for Table #160

Description

@JaDoOnWork

I'm using the output to send an email. So I would prefer inline styling if possible (or alternatively include css in the html output).

The standard Quill classes can be eliminated by implementing

const alignStyle = Quill.import('attributors/style/align') as typeof BlotConstructor;
const backgroundStyle = Quill.import('attributors/style/background') as typeof BlotConstructor;
const colorStyle = Quill.import('attributors/style/color') as typeof BlotConstructor;
const directionStyle = Quill.import('attributors/style/direction') as typeof BlotConstructor;
const fontStyle = Quill.import('attributors/style/font') as typeof BlotConstructor;
const sizeStyle = Quill.import('attributors/style/size') as typeof BlotConstructor;

Quill.register('attributors/style/align', alignStyle, true);
Quill.register('attributors/style/background', backgroundStyle, true);
Quill.register('attributors/style/color', colorStyle, true);
Quill.register('attributors/style/direction', directionStyle, true);
Quill.register('attributors/style/font', fontStyle, true);
Quill.register('attributors/style/size', sizeStyle, true);

Is there a way to force the Table stylings to also be inline?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions