Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Quill Editor Classes with Inline Styles - Typescript #1016

Open
CalaisFr opened this issue Nov 21, 2024 · 0 comments
Open

Replace Quill Editor Classes with Inline Styles - Typescript #1016

CalaisFr opened this issue Nov 21, 2024 · 0 comments

Comments

@CalaisFr
Copy link

Can't find much Typescript code at all for swapping Quill editor classes out for inline styles.

I need inline styles because the html string is eventually being passed to email service to render as html.

const customOptions = [{
import: 'attributors/style/size',
whitelist: ['12px', '20px', '24px']
},

];

//const att = Quill.import('attributors/style/size');
//Quill.register(att, true);
Quill.import('attributors/style/direction');
Quill.register('attributors/style/direction', true);
Quill.import('attributors/style/align');
Quill.register('attributors/style/align', true);

I've found some code here and there but most forums are javascript would requires a different implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant