diff --git a/lib/src/utils/javascript_executor_base.dart b/lib/src/utils/javascript_executor_base.dart index da03694..e0a6cd7 100644 --- a/lib/src/utils/javascript_executor_base.dart +++ b/lib/src/utils/javascript_executor_base.dart @@ -198,6 +198,8 @@ class JavascriptExecutorBase { ); } + /// Insert video from Youtube or Device + /// might work with dailymotion but i've not tested that insertVideo(String url, {int? width, int? height, bool fromDevice = true}) async { bool? local; diff --git a/lib/src/widgets/editor_tool_bar.dart b/lib/src/widgets/editor_tool_bar.dart index 99cbf9b..110bbb2 100644 --- a/lib/src/widgets/editor_tool_bar.dart +++ b/lib/src/widgets/editor_tool_bar.dart @@ -98,7 +98,7 @@ class EditorToolBar extends StatelessWidget { return InsertImageDialog(isVideo: true); }, ); - if(link != null) { + if (link != null) { if (getVideoUrl != null && link[2]) { link[0] = await getVideoUrl!(File(link[0])); } diff --git a/lib/src/widgets/html_text.dart b/lib/src/widgets/html_text.dart index 8ee4085..0415f25 100644 --- a/lib/src/widgets/html_text.dart +++ b/lib/src/widgets/html_text.dart @@ -8,6 +8,9 @@ class HtmlText extends StatelessWidget { @override Widget build(BuildContext context) { - return Container(child: HtmlWidget(html), height: 40.0,); + return Container( + child: HtmlWidget(html), + height: 40.0, + ); } } diff --git a/pubspec.yaml b/pubspec.yaml index 645ec83..b6f30d1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: rich_editor description: WYSIWYG editor for Flutter with a rich set of supported formatting options. -version: 0.0.2 +version: 0.0.3 homepage: https://github.com/JideGuru/rich_editor environment: