我想让摩纳哥的编辑在电子上运行。我找到了摩纳哥的电子例子,但它们不能在我的应用程序中工作。
我所得到的只是错误,比如:
"loader.js:1817 Uncaught Error: Unrecognized require call"
"angular.js:13920 Error: Check dependency list! Synchronous require cannot resolve module 'fs'. This is the first mention of this module! at e.synchronousRequir
我使用以下角度的方法突出显示文本区域中的文本。
我们如何才能在摩纳哥编辑中实现同样的目标。有什么办法我可以用摩纳哥编辑器来做这个吗?
我的方法:
const acceptedList = ['do', 'have'];
// let editor1 = monaco.editor.create( ...
let model = editor1.getModel();
for (let i = 0; i < model.getLineCount(); i++) {
let line = model.getLin
我想要有这样的效果:
因此,我使用editor.deltaDecorations()编辑内联css类。这是我的密码
var content = [
'xxx line 1 xxx',
'xxx title xxx',
'xxx line 3 xxx'
].join('\n');
var editor = monaco.editor.create(document.getElementById('container'), {
value: content,
lang