Coder Social home page Coder Social logo

Comments (20)

pandao avatar pandao commented on May 12, 2024

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

from editor.md.

kevinma2010 avatar kevinma2010 commented on May 12, 2024

没有, 我那个是解决了无法获取预览窗口的HTML源码的问题

from editor.md.

pandao avatar pandao commented on May 12, 2024

嗯,我大概知道什么问题了。

from editor.md.

kevinma2010 avatar kevinma2010 commented on May 12, 2024

这个问题现在是否解决了?

from editor.md.

pandao avatar pandao commented on May 12, 2024

你是不是又在onload之前调用了?

from editor.md.

kevinma2010 avatar kevinma2010 commented on May 12, 2024

我一直都没有在onload之前调用什么函数

from editor.md.

kevinma2010 avatar kevinma2010 commented on May 12, 2024
markdownEditor = editormd("note-detail", {
//          watch: false,
          lineNumbers: false,
          toolbar: false,
          tex : true,   // 开启科学公式TeX语言支持,默认关闭
          flowChart : true, // 开启流程图支持,默认关闭
          sequenceDiagram : true, // 开启时序/序列图支持,默认关闭,
          path: 'lib/editormd/lib/'
      });

这是我的配置

from editor.md.

pandao avatar pandao commented on May 12, 2024

其他代码也贴出来吧

from editor.md.

kevinma2010 avatar kevinma2010 commented on May 12, 2024

就这么多。 note-detail是一个div,markdown未初始化前,textarea中有值

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

其他代码也贴出来吧


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

from editor.md.

pandao avatar pandao commented on May 12, 2024

你是怎么触发editor.previewing(); ?

from editor.md.

kevinma2010 avatar kevinma2010 commented on May 12, 2024

http://md.mlongbo.com/ 右上角有一个预览按钮,点击按钮时调用了 editor.previewing();

from editor.md.

pandao avatar pandao commented on May 12, 2024

出现关闭按钮是Editor.md自带的交互功能,你完全可以自己修改,例如隐藏它。

from editor.md.

kevinma2010 avatar kevinma2010 commented on May 12, 2024

我已经改掉了。我觉得这是一个bug,所以就提了出来

2015-02-19 17:07 GMT+08:00 pandao [email protected]:

出现关闭按钮是Editor.md自带的交互功能,你完全可以自己修改,例如隐藏它。


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

from editor.md.

pandao avatar pandao commented on May 12, 2024

我不认为这是,最初设计的应用场景不是像你那种在线Markdown文档编辑服务http://md.mlongbo.com/ ,所以我才加上一个关闭按钮。

from editor.md.

kevinma2010 avatar kevinma2010 commented on May 12, 2024

我想你没明白我的意思 我所说的bug是第一张图中出现的关闭按钮,这个按钮被点击了之后没有任何反应(这个没有意义,这个bug在你的官方示例中是没有看到的).而你所说的应用场景应该是第二张图(ps: 这个设计确实很好)。

2015-02-19 17 13 00

2015-02-19 17 13 55

from editor.md.

pandao avatar pandao commented on May 12, 2024

像你这种应用场景你直接用只读模式不是更好?http://md.mlongbo.com/doc.html,previewing方法是应用在全编辑器窗口预览HTML。

from editor.md.

kevinma2010 avatar kevinma2010 commented on May 12, 2024

嗯,谢谢提醒。我改一下[?]

2015-02-19 17:23 GMT+08:00 pandao [email protected]:

像你这种应用场景你直接用只读模式不是更好?
http://md.mlongbo.com/doc.html,previewing方法是应用在全编辑器窗口预览HTML。


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

from editor.md.

pandao avatar pandao commented on May 12, 2024

嗯,感觉你说不清楚,我也没听明白,急得我都快"抓狂"了。-_-!!

from editor.md.

ruanjiayou avatar ruanjiayou commented on May 12, 2024

这个应该设个配置项的。
只能这样了
.editormd-preview-close-btn { display: none; }

from editor.md.

pixeldin avatar pixeldin commented on May 12, 2024

@ruanjiayou 请问你是怎么改的?

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.