简体   繁体   中英

Android rich text editor area is not editable

I've a problem in the Android Browser or Web View with loading sites that embed a "Rich Text Editor" inside, like tinyMce or Kevinroth .

The editable text area inside the site isn't select-able / editable "when enabling the JS in my webview" in the browser / Web view, when I touch on the editable area the page zooms in/ out.

This happens for me with a lot of similar sites that contains Rich Text Editor inside.

  • My Code :

     @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); webView = (WebView) findViewById(R.id.webView1); webView.getSettings().setJavaScriptEnabled(true); webView.setWebViewClient(new WebViewClient() { public boolean shouldOverrideUrlLoading(WebView view, String url) { // TODO Auto-generated method stub view.loadUrl(url); return true; } }); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); webSettings.setDomStorageEnabled(true); webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setDomStorageEnabled(true); webView.getSettings().setPluginState(PluginState.ON); webView.setWebChromeClient(new WebChromeClient()); webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true); webView.loadUrl("http://www.tinymce.com/tryit/basic.php"); } 

Any help..?!

It seems that the problem is in Android API 2.2 and 2.3, because when i tested my app on higher APIs it works fine.

But, it stills a problem to this APIs :(

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM