feat: added more editor settings

This commit is contained in:
jideguru
2021-06-03 00:37:45 +01:00
parent 9ce8ad2365
commit 75ae842f4b
3 changed files with 9 additions and 29 deletions

View File

@@ -67,25 +67,17 @@ class _MyHomePageState extends State<MyHomePage> {
onSelected: (val) async {
switch (val) {
case 0:
{
String? html = await keyEditor.currentState?.getHtml();
print(html);
}
String? html = await keyEditor.currentState?.getHtml();
print(html);
break;
case 1:
{
await keyEditor.currentState?.clear();
}
await keyEditor.currentState?.clear();
break;
case 2:
{
await keyEditor.currentState?.unFocus();
}
await keyEditor.currentState?.unFocus();
break;
case 3:
{
await keyEditor.currentState?.focus();
}
await keyEditor.currentState?.focus();
break;
}
},