Code Monkey home page Code Monkey logo

Comments (5)

BlindDespair avatar BlindDespair commented on August 25, 2024 4

@atul-wizni as I noticed, file is there, but there is no export keyword and it's not exported in index.ts either. So even though it's there it cannot be imported.

from ngx-monaco-editor.

DevidCIC avatar DevidCIC commented on August 25, 2024 1

Now I am using the onInit and there I am doing this, but not sure if there is not a better way :

  public clarionEditor;
 public onEditorInit(editor) {
        this.clarionEditor = editor;
    }

from ngx-monaco-editor.

atu1kr avatar atu1kr commented on August 25, 2024

This file is already exported as 'node_modules/ngx-monaco-editor/monaco.d.ts'

from ngx-monaco-editor.

atu1kr avatar atu1kr commented on August 25, 2024

with version 4.1.0 use can use monaco instance directly as it has be added in types.d.ts as reference path.

from ngx-monaco-editor.

DevidCIC avatar DevidCIC commented on August 25, 2024

@atul-wizni How can I get the monaco editor instance ? I would like to know if I the editor has Focus.
On Escape if the editor has Focus I would like to blur.

@HostListener('keydown', ['$event']) public onKeyUp(evt: KeyboardEvent) {
        if (evt.keyCode === KeyCode.esc) {
            // check if the editor has focus
            monaco.editor ..... ???
        }
    }

from ngx-monaco-editor.

Related Issues (20)

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.