Giter VIP home page Giter VIP logo

Comments (4)

jinfeijie avatar jinfeijie commented on June 3, 2024 1
window.onbeforeunload = function(event){
    if(ckeditors.getData() != '' && {$isEdit}){
        event.returnValue = '即将离开页面,是否确认编辑的内容已使用?';   
    }
}

这段代码中,进行了一个判断,不在编辑的状态就提示“即将离开页面,是否确认编辑的内容已使用?”。
刺激的是,发布这个动作也是离开编辑的状态,所以就出现了这个情况。
@note4 如果你编辑习惯好的话,把Plugin.php文件中,259-263行代码删除就可以了。目测,删掉几乎没有任何影响。

不过,你最好打开自动保存功能,那就没有任何关系了。

from plugins.

note4 avatar note4 commented on June 3, 2024

@zhulin3141 求指点!

from plugins.

jzwalk avatar jzwalk commented on June 3, 2024

js白痴表示不知道这提示哪来的……
插件261行有个“即将离开页面,是否确认编辑的内容已使用”提示,typecho的write-js.php有“内容已经改变尚未保存, 您确认要离开此页面吗?”提示,然并卵。。
@zhulin3141 还有谁能看出一二? =.=

from plugins.

jzwalk avatar jzwalk commented on June 3, 2024

感谢jinfeijie解答,看来应该是js判断与te有一点冲突0.0 问题不大,希望能帮到i主。如有其他问题欢迎继续提交!

from plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.