I\'ve been trying to offer a WYSIWYG HTML editor to my users, from inside my app. It doesn\'t have to be a fancy WYSIWYG. I just need basic functionality like Bold, Italic,
EditText
is perfectly capable of displaying rich text. It's just that there's no easy way for users -- or even developers -- to really control that formatting. Hence, I've been poking off and on with a library to deal with this, offering a RichEditText
drop-in replacement for EditText
. It's still a work-in-progress, and I really need to spend more time on it in the not-too-distant future.
Webview of Andoird API support content editable of HTML.
webSettings.setJavaScriptEnabled(true)
webSettings.setDomStorageEnabled(true);
webSettings.setLightTouchEnabled(true);
to enable webview editable and then use
webview.loadurl("javascript:....")
such as :webView.loadUrl("javascript:document.execCommand('bold', false, null);"); to control editing.
your can see WYSIWYG editing of my application on Android, WYSIWYG editing of YodaNote 0.4