CKEditor is a powerful rich text editor for web applications. This post shows how to integrate the editor into an Android application and load a sample page into a WebView.
- Download CKEditor.
- Unpack Zip file and move ckeditor folder to $project.projectDir/src/main/assets folder.
- Create a WebView in your layout file.
- After inflating the layout file, find WebView and enable JavaScript: webView.getSettings().setJavaScriptEnabled(true);
- Load sample app into the WebView: webView.loadUrl("file:///android_asset/ckeditor/samples/index.html");
When the application is launched, it'll look something like this:
it showing empty
ReplyDelete