Coder Social home page Coder Social logo

Comments (5)

pandao avatar pandao commented on May 12, 2024

我这边试了可以呀

from editor.md.

tylerlong avatar tylerlong commented on May 12, 2024

Mac OS X 10.10, Google Chrome Version 40.0.2214.115 (64-bit)

Win8 + Chrome 也测了,也不行

image

有高亮的应该是这样:

image

from editor.md.

pandao avatar pandao commented on May 12, 2024

嗯,试了一下,我这边Win7 + Chrome 39也不行,Change时没有及时加上代码高亮的样式类class="prettyprint linenums prettyprinted"。先标记一下,稍后一并修复。

from editor.md.

pandao avatar pandao commented on May 12, 2024

@v1.1.6 fixed.

from editor.md.

thinkycx avatar thinkycx commented on May 12, 2024
  • 请问调用setMarkdown如何传入多行参数呢?
    temp 中只要出现转义字符\r\n前端就会渲染失败。
    请问是需要设置别的东西吗?
    <script type="text/javascript">
        var temp = "{{ content }}";
        document.write(temp);
        $(function () {
            var testEditor = editormd("editormd", {
                width: "100%",
                height: 640,
                syncScrolling: "single",
                saveHTMLToTextarea: true,
                path: "{{url_for('static', filename='editor.md/lib/')}}",
                htmlDecode : true ,
                onload: function(){
                // alert("onload");
                this.setMarkdown(temp);
                // console.log("onload =>", this, this.id, this.settings);
                 }
            });
        });
    </script>

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.