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

[QUESTION] How to remove newline at the top of the editor? #238

Closed
radikz opened this issue Mar 24, 2022 · 2 comments
Closed

[QUESTION] How to remove newline at the top of the editor? #238

radikz opened this issue Mar 24, 2022 · 2 comments
Labels
question Further information is requested

Comments

@radikz
Copy link

radikz commented Mar 24, 2022

Hi, I want to ask is there any way to remove the newline at the top of the editor?

html_enhance_question1

I want the cursor at the top of the editor when I click the editor for the first time like the image below.

html_enhance_question2

Here is the code that I used:

HtmlEditor(
  controller: _descriptionController,
  htmlEditorOptions: const HtmlEditorOptions(
    hint: "Your text here...",
  ),
  otherOptions: const OtherOptions(
    height: 300,
  ),
  htmlToolbarOptions:
      const HtmlToolbarOptions(defaultToolbarButtons: [
    FontButtons(
      strikethrough: false,
      subscript: false,
      superscript: false,
    ),
    ListButtons(listStyles: false),
    ParagraphButtons(
      alignCenter: false,
      alignJustify: false,
      alignLeft: false,
      alignRight: false,
      lineHeight: false,
      caseConverter: false,
      textDirection: false,
    )
  ]),
),
@radikz radikz added the question Further information is requested label Mar 24, 2022
@tneotia
Copy link
Owner

tneotia commented Mar 24, 2022

Please see #24 for more details on this issue

@radikz
Copy link
Author

radikz commented Mar 24, 2022

Hi, tneotia. Thanks for the reply. I'll close this for now.

@radikz radikz closed this as completed Mar 24, 2022
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