diff --git a/android/Gutenberg/src/main/java/org/wordpress/gutenberg/GutenbergView.kt b/android/Gutenberg/src/main/java/org/wordpress/gutenberg/GutenbergView.kt index 62f3c59..8bc9190 100644 --- a/android/Gutenberg/src/main/java/org/wordpress/gutenberg/GutenbergView.kt +++ b/android/Gutenberg/src/main/java/org/wordpress/gutenberg/GutenbergView.kt @@ -310,6 +310,18 @@ class GutenbergView : WebView { } } + fun undo() { + handler.post { + this.evaluateJavascript("editor.undo();", null) + } + } + + fun redo() { + handler.post { + this.evaluateJavascript("editor.redo();", null) + } + } + @JavascriptInterface fun onEditorLoaded() { Log.i("GutenbergView", "EditorLoaded received in native code")