zeljkoantich / ngx-mat-codemirror Goto Github PK
View Code? Open in Web Editor NEWCode editor input for Angular Material 2+ based on Codemirror
Home Page: https://smnbbrv.github.io/ngx-mat-codemirror/
License: MIT License
Code editor input for Angular Material 2+ based on Codemirror
Home Page: https://smnbbrv.github.io/ngx-mat-codemirror/
License: MIT License
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.
How to make codemirror editor stretch to 100% height of its parent html node?
Module not found: Error: Can't resolve 'rxjs-compat/Subject'
Changing it to import { Subject } from 'rxjs';
fixes the issue.
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?
node_modules/ngx-mat-codemirror/app/mat-codemirror/mat-codemirror.component.d.ts(4,37):
@angular/material/index.d.ts' is not a module.
import { MatFormFieldControl } from '@angular/material';
should be changed to
import { MatFormFieldControl } from '@angular/material/form-field';
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.
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.