editorWebBuilders static method
List<EmbedBuilder>
editorWebBuilders({
- QuillEditorImageEmbedConfigurations? imageEmbedConfigurations = const QuillEditorImageEmbedConfigurations(),
- QuillEditorWebVideoEmbedConfigurations? videoEmbedConfigurations = const QuillEditorWebVideoEmbedConfigurations(),
Returns a list of embed builders specifically designed for web support.
QuillEditorWebImageEmbedBuilder is the embed builder for handling images on the web. this will use tag of HTML
QuillEditorWebVideoEmbedBuilder is the embed builder for handling videos iframe on the web. this will use
Implementation
static List<fq.EmbedBuilder> editorWebBuilders({
QuillEditorImageEmbedConfigurations? imageEmbedConfigurations =
const QuillEditorImageEmbedConfigurations(),
QuillEditorWebVideoEmbedConfigurations? videoEmbedConfigurations =
const QuillEditorWebVideoEmbedConfigurations(),
}) {
if (!kIsWeb) {
throw UnsupportedError(
'The editorsWebBuilders() is only for web, please use editorBuilders() '
'instead for other platforms',
);
}
return [
if (imageEmbedConfigurations != null)
QuillEditorImageEmbedBuilder(
configurations: imageEmbedConfigurations,
),
if (videoEmbedConfigurations != null)
QuillEditorWebVideoEmbedBuilder(
configurations: videoEmbedConfigurations,
),
];
}