Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@covalent/code-editor

Package Overview
Dependencies
Maintainers
4
Versions
279
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@covalent/code-editor

Teradata Text and Code Editor built on Covalent and Angular Material

  • 1.0.0-alpha.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
670
decreased by-51.69%
Maintainers
4
Weekly downloads
 
Created
Source

Covalent-Code-Editor is a Text and Code Editor built on Covalent and Angular Material

Build Status npm version Join the chat at https://gitter.im/Teradata/covalent Dependency Status

Covalent is a reusable UI platform from Teradata for building web applications with common standards and tooling. It is based on Angular 2 and Material Design.

Covalent Github Repo: https://github.com/Teradata/covalent

Covalent-Code-Editor is an Angular Component for text and code editing based on Covalent

Setup

  • Add the following dependency to package.json
"dependencies": {
    "@covalent/code-editor": "^1.0.0-alpha.2"
  },
  • Important: Add the glob to assets in .angular-cli.json (to make monaco-editor javascript available to the app)
{
  "apps": [
    {
      "assets": [
        { "glob": "**/*", "input": "../node_modules/@covalent/code-editor/assets/monaco", "output": "./assets/monaco/" }
      ],
  • Add the following tag to html file
<td-code-editor theme="vs" flex language="sql"></td-code-editor>
  • Import the covalent-editor component into app.module.ts
import { CovalentCodeEditorModule } from '@covalent/code-editor';
...

imports: [
    CovalentCodeEditorModule.forRoot(),

...

API

Events

  • onEditorInitialized
  • onEditorConfigurationChanged
  • onEditorLanguageChanged
  • onEditorValueChange

Getters and Setters

  • value
  • language
  • registerLanguage
  • editorStyle
  • theme
  • isElectronApp

Keywords

FAQs

Package last updated on 22 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc