geekpark / smeditor Goto Github PK
View Code? Open in Web Editor NEW✎ 基于 Vue.js 2.0+ 石墨文档样式的富文本编辑器组件
Home Page: http://geekpark.github.io/smeditor.github.io/
License: GNU General Public License v3.0
✎ 基于 Vue.js 2.0+ 石墨文档样式的富文本编辑器组件
Home Page: http://geekpark.github.io/smeditor.github.io/
License: GNU General Public License v3.0
存图片服务器挂了,图片取不到
好像也没说
功能栏上面的配置也没有自定义?
求大佬解答,晚上回去搭个项目看看
upload (file, success) {
let url = this.config.uploadUrl
let xhr = new XMLHttpRequest()
let form = new FormData()
let self = this
if (!!config.uploadParams) {
Object.keys(this.config.uploadParams).map((i) => {
form.append(i, this.config.uploadParams[i]);
});
}
form.append(this.config.uploadName, file)
xhr.open('POST', url, true)
xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
if (xhr.status === 200) {
const json = JSON.parse(xhr.responseText)
const imgUrl = self.config.uploadCallback(json)
success(imgUrl)
} else {
if (self.config.uploadFailed) {
self.config.uploadFailed(xhr.responseText)
}
// 测试网站, 模拟上传
if (location.href.indexOf('ericjj.com/smeditor.github.io') > 0) {
const imgUrl = self.config.uploadCallback('')
success(imgUrl)
}
}
}
}
xhr.send(form)
}
<smeditor :config="config" />
在 vue 的项目中使用,请问可以设计一个绑定功能么?
<smeditor :config="config" v-model="content" />
类似这种,可以把编辑器的内容绑定到 content。
虽然到了 issue#10,可是还是不明白如何获取
公司有自己上传视频和图片的接口,怎么改造啊?
头上的图标都失效了怎么办啊,又不记得之前是什么样的,否则还能自己替换一下
没觉得哪里像石墨文档编辑器,是我装的不对吗
为什么连api都没有,怎么获取editor里面的数据,还有怎么填充数据
如题:
demo 里各种 icon 都没了
老哥,不知道是不是我用的不对,在编辑框内没法实现粘贴功能 Cmd+V 不行 Ctrl+V也不行
新手求教,在node怎么配置路径
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.