How to load template file with MarkDown rich text editor

We only need a piece of loading code to finish the mark down loading template file.

$("#md-demo").bind('click', function () {
        $.get("/Lib/MarkDown/examples/", function (md) {
            testEditor = editormd("test-editormd", {
                width: "99%",
                height: 740,
                path: "/Lib/MarkDown/lib/",
                appendMarkdown: "\n" + md,
                saveHTMLToTextarea: true,
                watch: false,
                htmlDecode: true,
                toolbar: false,
                previewCodeHighlight: false,
                tex: true,
                flowChart: true,
                sequenceDiagram: true,
                emoji: true,
                taskList: true,
                onload: function () {
                    console.log('onload', this);

                    this.config("lineNumbers", false);

                        toc: false,
                        tex: false,
                        toolbar: true,
                        previewCodeHighlight: true,
                        flowChart: false,
                        sequenceDiagram: false,
                        dialogLockScreen: false,
                        dialogMaskOpacity: 0.5,       // Set the transparency of the transparency mask layer, which is universal globally. The default value is 0.1
                        dialogDraggable: false,
                        dialogMaskBgColor: "#000"

                    this.config("onresize", function () {
                        console.log("onresize =>", this);



Relevant recommendations:


1.Configure mark down rich text editor in Asp.Net or. Net Core to have open source template code (code is. Net Core version 3.0)


2.In Asp.Net Core, mark down rich text editor is used to upload pictures and screenshots (open source code. Net core 3.0)



Open source address Move your hand and make a recommendation!

Note: this project will provide all kinds of useful demo s of core for a long time, aiming to help. Net developers improve their competitiveness and development speed. It is suggested to collect them as soon as possible. This template collection entry.

Tags: Javascript emoji

Posted on Mon, 04 Nov 2019 09:25:12 -0500 by villas