zjfcool / vue2x-ace-editor Goto Github PK
View Code? Open in Web Editor NEWace editor component by vue
ace editor component by vue
我一个界面有3个编辑器:html、css和js,为js编辑器设置的自定义提示,在其他两个编辑器也会出现js的自定义提示,对编辑造成一定的麻烦
要如何添加自己的自定义snippets,现在参考范例引入的snippets也不起作用,请教要如何处理?
比方说当我输入‘select * from fooDb.'时,下拉就出现该库里的表的数据。
vm.js:91 Uncaught F:\Electron\ZJICX\node_modules\vue2x-ace-editor\index.js:1
(function (exports, require, module, __filename, __dirname, process, global, Buffer) { return function (exports, require, module, __filename, __dirname) { import VueAceEditor from './editor/src/main.vue';
^^^^^^^^^^^^
SyntaxError: Unexpected identifier
at new Script (vm.js:83:7)
at createScript (vm.js:265:10)
at Object.runInThisContext (vm.js:313:10)
at Module._compile (internal/modules/cjs/loader.js:712:26)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10)
at Module.load (internal/modules/cjs/loader.js:645:32)
at Function.Module._load (internal/modules/cjs/loader.js:560:12)
at Module.require (internal/modules/cjs/loader.js:685:19)
at require (internal/modules/cjs/helpers.js:16:16)
at eval (webpack-internal:///vue2x-ace-editor:1:18)
Hey there,
Thanks for the package, I jsut wanted to ask about about binding v-model to the editor, maybe I am missing something but I followed your examples and trying to bind the editor now to a v-model to save in a form submission but it does not seem to be working.
Thanks
我想实现在编辑器里查找功能,就是定位一下查找的内容在哪一行在哪个位置,请问你有什么好的方案吗?
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.