Giter Site home page Giter Site logo

zeljkoantich / ngx-mat-codemirror Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 6.0 1.03 MB

Code editor input for Angular Material 2+ based on Codemirror

Home Page: https://smnbbrv.github.io/ngx-mat-codemirror/

License: MIT License

TypeScript 77.61% JavaScript 8.80% HTML 12.83% CSS 0.76%

ngx-mat-codemirror's People

Contributors

angular-cli avatar smnbbrv avatar zeljkoantich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ngx-mat-codemirror's Issues

File.../@angular/material/index.d.ts' is not a module.

ERROR in node_modules/ngx-mat-codemirror/app/mat-codemirror/mat-codemirror.component.d.ts:4:37 - error TS2306: File '/Users/gkucmierz/workspace/web-tools/node_modules/@angular/material/index.d.ts' is not a module.

4 import { MatFormFieldControl } from '@angular/material';
                                      ~~~~~~~~~~~~~~~~~~~

Zrzut ekranu 2020-06-28 o 00 12 03

Breaks when value updated while hidden

To reproduce place the ngx-mat-codemirror on a second tab of mat-tab-group, then update the value from the first tab (i.e. while the component is not visible).
Switching to the tab with the control will show the old state and no cursor until a key is pressed to change the value at which time the component will resume functioning correctly until updated again.

This is related to:
https://codemirror.net/doc/manual.html#addon_autorefresh

Calling this.codemirror.refresh() on ngAfterContentChecked() solves the issue but likely isn't very performance friendly.

Doesn't work with Angular 7

Module not found: Error: Can't resolve 'rxjs-compat/Subject'

Changing it to import { Subject } from 'rxjs'; fixes the issue.

reseting and clearing value

Hi,
Is there a way to clear the value when used in a form?
By default form is calling writeValue() with null but there is a null check for value is case of null.
am I missing anything?

ngx-mat-codemirror ownership transfer

Unfortunately I'm not able to maintain ngx-mat-codemirror any longer.

If any one is interested to maintain ngx-mat-codemirror I can transfer the ownership.

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.