Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当打开过webview后,再进入编辑器,richeditor不生效 #210

Open
feng1991G opened this issue Aug 5, 2019 · 7 comments
Open

Comments

@feng1991G
Copy link

我第一个页面是webview加载的h5内容,点击h5页面里的编辑按钮,跳转到richeditor编辑器里并把内容传递了过来,这时候编辑器里不展示任何内容,而且下方的加粗、倾斜等按钮也不生效。请问这种情况如何解决?

@mosentest
Copy link

newProgress

@mosentest
Copy link

onPageFinished

@feng1991G
Copy link
Author

onPageFinished

大佬什么意思?是重写这个方法然后在里面设置进度条吗?

@mosentest
Copy link

我刚才遇到这个问题,发现他不会走onPageFinished方法,你自己重写newProgress方法,监听下如果newProgress到达80以上 就执行onPageFinished方法里面的内容,前提你要把作者的代码扣下来放在自己的项目中

@feng1991G
Copy link
Author

feng1991G commented Nov 21, 2019 via email

@TigerZhag
Copy link

TigerZhag commented Feb 21, 2020

如果你第一个webView加载的页面里有video标签, 而且其没有设置preload或者poster属性,就会导致onPageFinished调用不到,这是安卓的一个bug ,如果加载的页面是你自己写的,可以在HTML中添加preload=none

@yeaper
Copy link

yeaper commented Apr 2, 2020

页面加载完成,在执行插入文本
@OverRide
public void onPageFinished(WebView view, String url) {
isReady = url.equalsIgnoreCase(SETUP_HTML); //页面加载完成
}

if (isReady) {
load(trigger);
} else {
postDelayed(new Runnable() {
@OverRide
public void run() {
exec(trigger);
}
}, 100);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants