Answer the question
In order to leave comments, you need to log in
What code editor can be inserted into laravel?
We need a code editor that can be inserted into Laravel less problematic.
Tried Brace , but all attempts are in vain
app.js
require('jquery');
require('./ace-editor');
window.Vue = require('vue');
Vue.component('example-component', require('./components/ExampleComponent.vue').default);
//Vue.component('luaeditor', require('./ace-editor'));
const app = new Vue({
el: '#app',
});
require('brace/mode/javascript');
require('brace/theme/monokai');
var editor = ace.edit('javascript-editor');
editor.getSession().setMode('ace/mode/javascript');
editor.setTheme('ace/theme/monokai');
editor.setValue([
'// JavaScript'
, 'var a = 3;'
, ''
, '// below line has an error which is annotated'
, 'var b ='
].join('\n')
);
editor.clearSelection();
Answer the question
In order to leave comments, you need to log in
https://github.surmon.me/vue-codemirror/ for example
In general, there is a collection of components
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question