-
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
[QUESTION] Is there a way to give background color to editor box #27
Comments
Hi, yes you can do this. The easiest way would be to disable HtmlEditor(
controller: controller,
htmlEditorOptions: HtmlEditorOptions(
darkMode: false,
),
callbacks: Callbacks(onInit: () {
controller.editorController!.evaluateJavascript(source: "document.getElementsByClassName('note-editable')[0].style.backgroundColor='blue';");
}),
), You can use any hex code or named color in place of Result: Please note this only works on mobile. If you use Web let me know and I'll provide a solution for that. Reference: https://stackoverflow.com/questions/1874560/how-to-use-javascript-to-change-div-backgroundcolor PS that editor design looks really, really good! 😀 |
@tneotia Thanks Mate! Thanks for the compliment for the design. Implementing neumorphic ui in my app. All credits to you for providing customisations. |
If you are using the simulator there is an odd issue where typing with the hardware keyboard does not work in the webview (not just this package, but any webview). Refer to #7 (comment) If you have a physical device and it doesn't work, please open a new issue. Thanks! |
Hello @tneotia |
I want to add background color to the editor area which is grey color now. Is there any way to do so?
Thanks in advance.
The text was updated successfully, but these errors were encountered: