File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,11 @@ Widget defaultEmbedBuilderWeb(
35
35
) {
36
36
switch (node.value.type) {
37
37
case BlockEmbed .imageType:
38
- // TODO: handle imageUrl of base64
39
38
final imageUrl = node.value.data;
39
+ if (isImageBase64 (imageUrl)) {
40
+ // TODO: handle imageUrl of base64
41
+ return const SizedBox ();
42
+ }
40
43
final size = MediaQuery .of (context).size;
41
44
UniversalUI ().platformViewRegistry.registerViewFactory (
42
45
imageUrl, (viewId) => html.ImageElement ()..src = imageUrl);
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export 'src/utils/embeds.dart';
13
13
export 'src/widgets/controller.dart' ;
14
14
export 'src/widgets/default_styles.dart' ;
15
15
export 'src/widgets/editor.dart' ;
16
+ export 'src/widgets/embeds/image.dart' ;
16
17
export 'src/widgets/link.dart' show LinkActionPickerDelegate, LinkMenuAction;
17
18
export 'src/widgets/style_widgets/style_widgets.dart' ;
18
19
export 'src/widgets/toolbar.dart' ;
You can’t perform that action at this time.
0 commit comments