-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG-Web] Cursor is acting weird and not in the right position and also the newline command #90
Comments
Hi there. Thanks for your bug reports. Here is what I have to say:
I really wish I could fix some of these issues but that can't happen unless I write my own WYSIWYG editor in HTML and JavaScript, something which I don't have the expertise or time for at the moment. Maybe some day :) Hopefully the solution for your second issue is helpful, and I will look into the first one. |
@tneotia Thank you for the detailed explanation. I totally understand how much effort it takes to write a WYSIWYG by yourself. This is why I am also looking for a package to support my project. This package is great, to be honest. I am also currently working on using IFrame in the web application. I use the platformViewRegistry function provide in your package and also found some StackOverflow questions about iframe that you had answered. Can I ask several questions about what I have using IFrameElement and HtmlElementView?
Thanks a lot! |
Thank you so much, I appreciate the kind words! Here are the answers to your questions:
Hope this helps you. |
@tneotia Thank you for the answer. I am currently on stable channel. Will you recommend I switch to master or wait until it make into stable? 😀 |
It is honestly up to you... of course It may be 1-2 months before the feature makes it to stable, which is why I like to use By the way would you be able to share your |
This is my HtmlEditor setup. It is pretty simple. I am not sure if it is the navigation cause that effect. I am using auto_route package for navigation by the way. It needs a bit of setup, but I think using simple navigation should be able to test. Expanded(
child: HtmlEditor(
controller: controller,
htmlEditorOptions: HtmlEditorOptions(
hint: 'Your text here...',
shouldEnsureVisible: true,
// initialText: "<p><b>text</b> content initial, if any</p>",
),
htmlToolbarOptions: HtmlToolbarOptions(),
callbacks: Callbacks(onInit: () => controller.setFullScreen()),
),
), |
Hi @tneotia,
First of all, this is a great package after I try several functionalities. I am planning to adopt this package into my flutter web project. However, I found some weird effects on the editor. I will separate it into different bug reports.
I am running the project with the command you recommend
flutter run --web-renderer html
I found when setting
hint: 'Your text here...',
in theHtmlEditorOptions()
. Initially when navigating to the edit page. The hint test sometimes will show correctly but sometimes will not. See below.Secondly, is that when clicking on the editing area. The cursor is below the hint text. Shouldn't it be on the same line of hint text? When I hit the backspace it will then appear at the start and the same line as hint text. Then when I clear the hint text and typed in some characters and hit enter to go to the new line. The character will move slightly lower. Which is not in the correct position.
Thank you for the great effort in creating this package. 😁
The text was updated successfully, but these errors were encountered: