为了账号安全,请及时绑定邮箱和手机立即绑定

不使用npm安装simditor而直接引用相关的js文件,那么可以使用其功能吗?

不使用npm安装simditor而直接引用相关的js文件,那么可以使用其功能吗?

蛊毒传说 2018-08-31 14:16:18
不使用npm安装simditor而直接引用相关的js文件,那么可以使用其功能吗?
查看完整描述

1 回答

?
慕田峪4524236

TA贡献1875条经验 获得超5个赞

当然可以,npm 安装最后也是引用对应的 js 文件,你到版本下载页下载最新的压缩包,按着官方文档的顺序依次引入就行

<link rel="stylesheet" type="text/css" href="[style path]/simditor.css" />


<script type="text/javascript" src="[script path]/jquery.min.js"></script>

<script type="text/javascript" src="[script path]/module.js"></script>

<script type="text/javascript" src="[script path]/hotkeys.js"></script>

<script type="text/javascript" src="[script path]/uploader.js"></script>

<script type="text/javascript" src="[script path]/simditor.js"></script>

顺序不能乱,因为它们之间有依赖的先后关系,还有以下描述

  • Simditor is based on jQuery and module.js.

  • hotkeys.js is used to bind hotkeys.

  • uploader.js is related to uploading files. You don't need to import this file if you don't want the uploading feature.


查看完整回答
反对 回复 2018-10-24
  • 1 回答
  • 0 关注
  • 1206 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信