<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Source: editormd.js</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Source: editormd.js</h1>
<section>
<article>
<pre class="prettyprint source linenums"><code>/*
* Editor.md
*
* @file editormd.js
* @version v1.4.5
* @description Open source online markdown editor.
* @license MIT License
* @author Pandao
* {@link https://github.com/pandao/editor.md}
* @updateTime 2015-06-02
*/
;(function(factory) {
"use strict";
// CommonJS/Node.js
if (typeof require === "function" && typeof exports === "object" && typeof module === "object")
{
module.exports = factory;
}
else if (typeof define === "function") // AMD/CMD/Sea.js
{
if (define.amd) // for Require.js
{
/* Require.js define replace */
}
else
{
define(["jquery"], factory); // for Sea.js
}
}
else
{
window.editormd = factory();
}
}(function() {
/* Require.js assignment replace */
"use strict";
var $ = (typeof (jQuery) !== "undefined") ? jQuery : Zepto;
if (typeof ($) === "undefined") {
return ;
}
/**
* editormd
*
* @param {String} id 编辑器的ID
* @param {Object} options 配置选项 Key/Value
* @returns {Object} editormd 返回editormd对象
*/
var editormd = function (id, options) {
return new editormd.fn.init(id, options);
};
editormd.title = editormd.$name = "Editor.md";
editormd.version = "1.4.5";
editormd.homePage = "https://pandao.github.io/editor.md/";
editormd.classPrefix = "editormd-";
editormd.toolbarModes = {
full : [
"undo", "redo", "|",
"bold", "del", "italic", "quote", "ucwords", "uppercase", "lowercase", "|",
"h1", "h2", "h3", "h4", "h5", "h6", "|",
"list-ul", "list-ol", "hr", "|",
"link", "reference-link", "image", "code", "preformatted-text", "code-block", "table", "datetime", "emoji", "html-entities", "pagebreak", "|",
"goto-line", "watch", "preview", "fullscreen", "clear", "search", "|",
"help", "info"
],
simple : [
"undo", "redo", "|",
"bold", "del", "italic", "quote", "uppercase", "lowercase", "|",
"h1", "h2", "h3", "h4", "h5", "h6", "|",
"list-ul", "list-ol", "hr", "|",
"watch", "preview", "fullscreen", "|",
"help", "info"
],
mini : [
"undo", "redo", "|",
"watch", "preview", "|",
"help", "info"
]
};
editormd.defaults = {
mode : "gfm", //gfm or markdown
theme : "default",
name : "",
value : "", // value for CodeMirror, if mode not gfm/markdown
markdown : "",
appendMarkdown : "", // if in init textarea value not empty, append markdown to textarea
width : "100%",
height : "100%",
path : "./lib/", // Dependents module file directory
pluginPath : "", // If this empty, default use settings.path + "../plugins/"
delay : 300, // Delay parse markdown to html, Uint : ms
autoLoadModules : true, // Automatic load dependent module files
watch : true,
placeholder : "Enjoy Markdown! coding now...",
gotoLine : true,
codeFold : false,
autoHeight : false,
autoFocus : true,
autoCloseTags : true,
searchReplace : true,
syncScrolling : true,
readOnly : false,
tabSize : 4,
indentUnit : 4,
lineNumbers : true,
lineWrapping : true,
autoCloseBrackets : true,
showTrailingSpace : true,
matchBrackets : true,
indentWithTabs : true,
styleSelectedText : true,
matchWordHighlight : true, // options: true, false, "onselected"
styleActiveLine : true, // Highlight the current line
dialogLockScreen : true,
dialogShowMask : true,
dialogDraggable : true,
dialogMaskBgColor : "#fff",
dialogMaskOpacity : 0.1,
fontSize : "13px",
saveHTMLToTextarea : false,
disabledKeyMaps : [],
onload : function() {},
onresize : function() {},
onchange : function() {},
onwatch : null,
onunwatch : null,
onpreviewing : function() {},
onpreviewed : function() {},
onfullscreen : function() {},
onfullscreenExit : function() {},
onscroll : function() {},
onpreviewscroll : function() {},
imageUpload : false,
imageFormats : ["jpg", "jpeg", "gif", "png", "bmp", "webp"],
imageUploadURL : "",
crossDomainUpload : false,
uploadCallbackURL : "",
toc : true, // Table of contents
tocm : false, // Using [TOCM], auto create ToC dropdown menu
tocTitle : "", // for ToC dropdown menu btn
tocDropdown : false,
tocContainer : "",
tocStartLevel : 1, // Said from H1 to create ToC
htmlDecode : false, // Open the HTML tag identification
pageBreak : true, // Enable parse page break [========]
atLink : true, // for @link
emailLink : true, // for email address auto link
taskList : false, // Enable Github Flavored Markdown task lists
emoji : false, // :emoji: , Support Github emoji, Twitter Emoji (Twemoji);
// Support FontAwesome icon emoji :fa-xxx: > Using fontAwesome icon web fonts;
// Support Editor.md logo icon emoji :editormd-logo: :editormd-logo-1x: > 1~8x;
tex : false, // TeX(LaTeX), based on KaTeX
flowChart : false, // flowChart.js only support IE9+
sequenceDiagram : false, // sequenceDiagram.js only support IE9+
previewCodeHighlight : true,
toolbar : true, // show/hide toolbar
toolbarAutoFixed : true, // on window scroll auto fixed position
toolbarIcons : "full",
toolbarTitles : {},
toolbarHandlers : {
ucwords : function() {
return editormd.toolbarHandlers.ucwords;
},
lowercase : function() {
return editormd.toolbarHandlers.lowercase;
}
},
toolbarCustomIcons : { // using html tag create toolbar icon
没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
收起资源包目录
Javaweb个人博客管理系统 源码 (7154个子文件)
AUTHORS 6KB
AUTHORS 6KB
AUTHORS 6KB
AUTHORS 6KB
BlogDaoImpl.class 8KB
BlogDaoImpl.class 8KB
ShowBlogServlet.class 8KB
EditServlet.class 7KB
UserDaoImpl.class 7KB
InformationServlet.class 7KB
InformationServlet.class 7KB
ConfigurationServlet.class 6KB
ConfigurationServlet.class 6KB
EditServlet.class 6KB
UserServlet.class 6KB
BlogShowServlet.class 6KB
BlogShowServlet.class 6KB
LinkServlet.class 5KB
LinkServlet.class 5KB
CategoryServlet.class 5KB
CategoryServlet.class 5KB
CategoryDaoImpl.class 5KB
registerServlet.class 5KB
RegisterServlet.class 5KB
PhotoServlet.class 5KB
Right.class 5KB
BlogServlet.class 5KB
Right.class 5KB
TagServlet.class 5KB
PhotoDaoImpl.class 5KB
TagServlet.class 4KB
BlogServlet.class 4KB
CategoryDaoImpl.class 4KB
LinkDaoImpl.class 4KB
ProfileServlet.class 4KB
UserDaoImpl.class 4KB
TagDaoImpl.class 4KB
NoteDaoImpl.class 4KB
LinkDaoImpl.class 4KB
UploadServlet.class 3KB
TagDaoImpl.class 3KB
Description.class 3KB
Description.class 3KB
Blog.class 3KB
Blog.class 3KB
RightServiceImpl.class 3KB
loginServlet.class 3KB
IndexServlet.class 3KB
IndexServlet.class 3KB
RightServiceImpl.class 3KB
LoginServlet.class 3KB
DescriptionDaoImpl.class 3KB
DescriptionDaoImpl.class 3KB
User.class 3KB
User.class 3KB
UserServiceImpl.class 3KB
DBUtil.class 3KB
LoginServlet.class 3KB
DBUtil.class 3KB
InformationDaoImpl.class 2KB
InformationDaoImpl.class 2KB
CommentDaoImpl.class 2KB
CommentDaoImpl.class 2KB
Dbo.class 2KB
Link.class 2KB
FooterDaoImpl.class 2KB
Link.class 2KB
FooterDaoImpl.class 2KB
SiteDaoImpl.class 2KB
SiteDaoImpl.class 2KB
PhotoDaoImpl.class 2KB
BlogServiceImpl.class 2KB
BlogServiceImpl.class 2KB
Photo.class 2KB
Photo.class 2KB
Comment.class 2KB
Comment.class 2KB
Site.class 2KB
Site.class 2KB
Information.class 2KB
Information.class 2KB
Note.class 2KB
Tag.class 2KB
Tag.class 2KB
MarkDownUtil.class 2KB
MarkDownUtil.class 2KB
Test1.class 2KB
CategoryServiceImpl.class 2KB
Page.class 2KB
Page.class 2KB
Footer.class 2KB
Footer.class 2KB
Category.class 2KB
Category.class 2KB
UserServiceImpl.class 2KB
CategoryServiceImpl.class 2KB
PhotoServiceImpl.class 2KB
LinkServiceImpl.class 2KB
LinkServiceImpl.class 1KB
TagServiceImpl.class 1KB
共 7154 条
- 1
- 2
- 3
- 4
- 5
- 6
- 72
我慢慢地也过来了
- 粉丝: 5925
- 资源: 3787
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论10