Comments (4)
window.onbeforeunload = function(event){
if(ckeditors.getData() != '' && {$isEdit}){
event.returnValue = '即将离开页面,是否确认编辑的内容已使用?';
}
}
这段代码中,进行了一个判断,不在编辑的状态就提示“即将离开页面,是否确认编辑的内容已使用?
”。
刺激的是,发布这个动作也是离开编辑的状态,所以就出现了这个情况。
@note4 如果你编辑习惯好的话,把Plugin.php
文件中,259
-263
行代码删除就可以了。目测,删掉几乎没有任何影响。
不过,你最好打开自动保存功能
,那就没有任何关系了。
from plugins.
@zhulin3141 求指点!
from plugins.
js白痴表示不知道这提示哪来的……
插件261行有个“即将离开页面,是否确认编辑的内容已使用”提示,typecho的write-js.php有“内容已经改变尚未保存, 您确认要离开此页面吗?”提示,然并卵。。
@zhulin3141 还有谁能看出一二? =.=
from plugins.
感谢jinfeijie解答,看来应该是js判断与te有一点冲突0.0 问题不大,希望能帮到i主。如有其他问题欢迎继续提交!
from plugins.
Related Issues (20)
- Sitemap插件无法生成多级分类链接 HOT 1
- Google搜索无法读取站点地图 HOT 4
- 启用插件报错500
- 投稿插件:Turnstile
- 1.2版typecho好用的富文本编辑器 HOT 1
- 投稿插件ChatgptWrite
- 投稿插件NewSmms
- 投稿插件WindsCkEditor HOT 2
- 投稿插件:TagSelector标签选择器插件 HOT 1
- 投稿插件:CSZSitemap
- typecho 使用links插件在新增链接时报错 HOT 4
- 未成功读取插件信息,请检查来源设置后重试。 HOT 2
- 插件 CommentPush
- 投稿插件:SiteMaintenance
- 又拍云插件不支持php8.2,可否兼容一下呀
- 投稿插件:Comment2PushDeer
- OssForTypecho 需要更新一下啦,PHP8.3 Typecho1.2.1环境用不了了
- 投稿插件:Gzh2typecho
- 投稿插件:CustomRSS
- 现在投稿插件还有人处理吗? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugins.