Skip to content
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

Hello, I want the framed place to be at the bottom by default, and follow the keyboard to pop up. What do I need to do? #118

Closed
2530442368 opened this issue Aug 23, 2021 · 10 comments
Labels
question Further information is requested

Comments

@2530442368
Copy link

image

@2530442368 2530442368 added the question Further information is requested label Aug 23, 2021
@tneotia
Copy link
Owner

tneotia commented Aug 23, 2021

You need to change the height of your editor box using MediaQuery to make it full size.

@2530442368
Copy link
Author

您需要使用 MediaQuery 更改编辑器框的高度以使其全尺寸。

Can you please give me the code for how to set it up? Thank you very much. I searched the document for a long time, but I didn’t find it. It may be that I don’t understand the document deeply.

@2530442368
Copy link
Author

您需要使用 MediaQuery 更改编辑器框的高度以使其全尺寸。

你能告诉我如何设置它的代码吗?非常感谢。找了半天文档,没找到。可能是我对文档的理解不深。

image

@tneotia
Copy link
Owner

tneotia commented Aug 23, 2021

htmlEditorOptions: HtmlEditorOptions(
    height: MediaQuery.of(context).size.height - (MediaQuery.of(context).padding.top + kToolbarHeight)
    ...
)

should work for you

@2530442368
Copy link
Author

htmlEditorOptions: HtmlEditorOptions(
    height: MediaQuery.of(context).size.height - (MediaQuery.of(context).padding.top + kToolbarHeight)
    ...
)

should work for you

Hello, is the parameter given wrong but this OtherOptions parameter, I reported an error with the parameter you gave by the authorThe named parameter "height" is not defined. Try to correct the name to the name of an existing named parameter, or use the name "height" to define a named parameter. Open document

@2530442368
Copy link
Author

795b6f64d7747645baadddb3ac05a80
I'm sorry to ask you one or two more questions, 1: Can this be removed where the arrow points? 2: Can the arrangement of the picture frame be arranged neatly?

@tneotia
Copy link
Owner

tneotia commented Aug 23, 2021

  1. Yes, follow instructions from [QUESTION] How to remove dragbar  #42
  2. Hmm that is something I have to fix... it is a bug thank you for telling me.

@2530442368
Copy link
Author

  1. Yes, follow instructions from [QUESTION] How to remove dragbar  #42
  2. Hmm that is something I have to fix... it is a bug thank you for telling me.

Sorry, I still don’t understand how to delete the drag bar. Can you explain it in detail?

@tneotia
Copy link
Owner

tneotia commented Aug 23, 2021

HtmlEditor(
   controller: controller,
   callbacks: Callbacks(
      onInit: () {
         controller.setFullscreen();
      }
   )
)

Like this :)

@2530442368
Copy link
Author

HTML编辑(
   控制器:控制器,
   回调: 回调(
      的OnInit :(){
         控制器。setFullscreen ;()
      } 
   )
)

像这样:)

Thank you

@tneotia tneotia closed this as completed Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants