diff --git a/CHANGELOG.md b/CHANGELOG.md index 42ee08197..4c5ca79ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.4.3 +* fix: the text within the `` tag didn't parse correctly when pasting HTML by @LucasXu0 in ([#501](https://github.com/AppFlowy-IO/appflowy-editor/pull/501)) + ## 1.4.2 * fix: platform issue on Web by @LucasXu0 in ([#498](https://github.com/AppFlowy-IO/appflowy-editor/pull/498)) diff --git a/documentation/images/showcase.png b/documentation/images/showcase.png index e686c9576..12e90be74 100644 Binary files a/documentation/images/showcase.png and b/documentation/images/showcase.png differ diff --git a/example/lib/pages/customize_theme_for_editor.dart b/example/lib/pages/customize_theme_for_editor.dart index 2f71a81b7..a79fd3fbc 100644 --- a/example/lib/pages/customize_theme_for_editor.dart +++ b/example/lib/pages/customize_theme_for_editor.dart @@ -4,6 +4,7 @@ import 'package:appflowy_editor/appflowy_editor.dart'; import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; +import 'package:google_fonts/google_fonts.dart'; class CustomizeThemeForEditor extends StatefulWidget { const CustomizeThemeForEditor({super.key}); @@ -63,6 +64,11 @@ class _CustomizeThemeForEditorState extends State { editorState: editorState, editorStyle: customizeEditorStyle(), blockComponentBuilders: customBuilder(), + header: Image.asset( + 'assets/images/header.png', + height: 200, + fit: BoxFit.cover, + ), ), ); } @@ -74,7 +80,7 @@ class _CustomizeThemeForEditorState extends State { if (HeadingBlockKeys.type == node.type) { return const EdgeInsets.symmetric(vertical: 30); } - return const EdgeInsets.symmetric(vertical: 10); + return const EdgeInsets.symmetric(vertical: 5); }, textStyle: (node) { if (HeadingBlockKeys.type == node.type) { @@ -139,13 +145,13 @@ class _CustomizeThemeForEditorState extends State { EditorStyle customizeEditorStyle() { return EditorStyle( padding: PlatformExtension.isDesktopOrWeb - ? const EdgeInsets.only(left: 100, right: 100, top: 20) + ? const EdgeInsets.only(left: 200, right: 200) : const EdgeInsets.symmetric(horizontal: 20), cursorColor: Colors.green, selectionColor: Colors.green.withOpacity(0.5), textStyleConfiguration: TextStyleConfiguration( - text: const TextStyle( - fontSize: 18.0, + text: GoogleFonts.poppins( + fontSize: 14.0, color: Colors.white, ), bold: const TextStyle( diff --git a/pubspec.yaml b/pubspec.yaml index 512490566..483b15799 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: appflowy_editor description: A highly customizable rich-text editor for Flutter. The AppFlowy Editor project for AppFlowy and beyond. -version: 1.4.2 +version: 1.4.3 homepage: https://github.com/AppFlowy-IO/appflowy-editor platforms: