editorWebBuilders static method

List<EmbedBuilder> editorWebBuilders({
  1. QuillEditorImageEmbedConfigurations? imageEmbedConfigurations = const QuillEditorImageEmbedConfigurations(),
  2. 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,
      ),
  ];
}