Comments (1)
解决了,如果和vue一起用的话不要用在生命周期函数created中。我放回了jq加载完毕函数里面了就好了。
<script>
$(function(){
this.testEditor = editormd({
id : "editormd",
width : "100%",
height : 640,
path : "../lib/"
});
})
var app = new Vue({
el: '#app',
data: {
},
created() {
var that = this
axios.get("./user/check").then(function (response) {
if (response.data.code != 200) {
window.location.href = "../";
}
}).catch(function (error) {
console.log(error);
})
},
methods: {
}
})
</script>
from editor.md.
Related Issues (20)
- 如何改变字体的颜色
- 评价
- 123
- Error in both the Chinese and English homepages regarding Superscript and Subscript
- unwatch的时候Preview不会显示最新的内容 HOT 1
- 一个文本框不显示的bug HOT 3
- 根据demo起了一页,但上传图片失败, 所有js和css都已引入 HOT 1
- Fullscreen Error
- emoji 怎么在html中替换
- Make left side monospace
- There is an XSS on the editor.md.
- Chrome extension to replace GitHub Markdown editor?
- I want add new block quoate syntax to editor md
- Return value of Typecho\I18n\GetText::translate() must be of the type string, null returned
- Invalidity of TeX in tables(forms)
- 默认全窗口预览的问题 HOT 2
- :heart: icon not rendering in Editor
- flow 流程图 在 markdownToHTML 操作时失效问题
- 大佬能否考虑下加入语法高亮
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from editor.md.