Git Product home page Git Product logo

Comments (7)

pandao avatar pandao commented on May 8, 2024

@lenbo-ma 这应该在你提交的pull request中得到解决了吧?我已经合并你的pull request。

from editor.md.

pandao avatar pandao commented on May 8, 2024

目前在editor.md加载完成(onload)之前不能立即调用实例的任何方法,要么在onload配置选项的回调方法内调用。

from editor.md.

kevinma2010 avatar kevinma2010 commented on May 8, 2024

那是否可以在调用previewing函数进行预览时,先检查是否已经将编辑器内的markdown渲染到预览区。我看到previewing函数只是在控制右侧预览区的布局

在 2015年2月19日 下午4:28,pandao [email protected]写道:

目前在editor.md加载完成(onload)之前不能立即调用实例的任何方法,要么在onload配置选项的回调方法内调用。


Reply to this email directly or view it on GitHub
#10 (comment).

from editor.md.

pandao avatar pandao commented on May 8, 2024

因为Editor.md依赖的模块是动态加载的,所以在onload之前不要立即调用实例对象的成员方法。

from editor.md.

pandao avatar pandao commented on May 8, 2024

配置选项要么一步到位,要么在onload选项的回调函数里调用。

from editor.md.

kevinma2010 avatar kevinma2010 commented on May 8, 2024

嗯,我明白是模块是动态加载的. 我是说加入watch参数初始时false。初始化完成后。手动点击页面上的一个按钮触发了previewing函数,
此时markdown并未渲染, 所以出现了空白。不知道是否有全局变量标记markdown是否渲染, 如果有,就可以在这个函数中做一下处理

2015-02-19 16:35 GMT+08:00 pandao [email protected]:

配置选项要么一步到位,要么在onload选项的回调函数里调用。


Reply to this email directly or view it on GitHub
#10 (comment).

from editor.md.

pandao avatar pandao commented on May 8, 2024

我知道你说的是什么意思了,我这边已经改过来了。

from editor.md.

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.