vue-codemirror icon indicating copy to clipboard operation
vue-codemirror copied to clipboard

How can I add a plugin like Emmet to vue-codemirror?

Open SimonLeeee opened this issue 7 years ago • 3 comments

I actually found a way https://github.com/sergeche/codemirror-movie, but it seems not supporting the .Vue file format. Can someone tell me how to do that? Thank you.

SimonLeeee avatar Jun 12 '18 01:06 SimonLeeee

I waiting for answer to. I can't to find how to works with fromTextArea function like this:

var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
	mode : 'text/html',
	
	// define Emmet output profile
	profile: 'xhtml'
});
emmetCodeMirror(editor);

fco4 avatar Aug 10 '18 09:08 fco4

Sorry, since Vue-Codemirror encapsulates the container, it cannot support codemirror-movie on the basis of Vue-Codemirror itself, but you can make codemirror-movie work without Vue-Codemirror.

surmon-china avatar Sep 06 '18 15:09 surmon-china

Thank you, I did so.

fco4 avatar Sep 06 '18 15:09 fco4