Giter Site home page Giter Site logo

vm-markdown's Issues

Style replacing text instead of wrapping

  1. Select text in your demo
  2. Press "Bold" or "Italic" button -> your text was replaced instead of wrapped.
    What happend: Some text -> select me te -> press "Bold" = So ** Bold ** xt, expected: So**me te**xt.

README has spelling errors

The install instructions say "markdwon" instead of markdown. npm install --save vm-markdwon
The import statement is also misspelled. import VmMarkdown from 'vm-markdwon'

用vm-markdown做文本,对文章再次编辑的话,之前保存的值怎么加不到defaultText,获取不了初始化后台的res.data.dec的值

<VmMarkdown :theme="setBg"
     width="100%" 
    :height="editHeight - 50 + 'px'" 
    v-on:gethtml="autoPulish"
    :defaultText="dec">
</VmMarkdown>
data() {
   return {
       dec: ''
   }
},
created() {
   created() {
    	this.id = this.$route.query.id;
    	if (this.id) {
    		this.initData();
    	}
    },
}
methods: {
    initData() {
       this.$ajax.get(C.Api('editDetail'), {params: {id: this.id}}).then(res=> {
		 if (res.flag === C.Flag.success) {
			 this.dec = res.data.dec;
		 }
	 })
    },
}

markdown的defaultText 获取不了初始化后台的res.data.dec的值。
这个怎么处理呢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.