# vue2-ace-editor-electron

> Ace (brace) editor wrapper component for Vue2 based electron apps

Latest version **0.0.4** (published 2018-02-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue2-ace-editor-electron
pnpm add vue2-ace-editor-electron
yarn add vue2-ace-editor-electron
bun add vue2-ace-editor-electron
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2018-02-19 |
| First published | 2018-02-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | lcherone |
| Maintainers | lcherone |
| Keywords | ace, editor, vue2, electron, vue-electron, electron-vue, cloud9 |

## Links

- npm: https://www.npmjs.com/package/vue2-ace-editor-electron
- Repository: https://github.com/lcherone/vue2-ace-editor-electron
- Homepage: https://github.com/lcherone/vue2-ace-editor-electron#readme
- Issues: https://github.com/lcherone/vue2-ace-editor-electron/issues
- npm.io page: https://npm.io/package/vue2-ace-editor-electron

## Dependencies (1)

- [brace](https://npm.io/package/brace.md) ^0.11.1

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 0.0.4 (latest) — 2018-02-19
- 0.0.3 — 2018-02-19
- 0.0.2 — 2018-02-19
- 0.0.1 — 2018-02-19

## README

vue2-ace-editor-electron
====================

[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

A packaging of [ace](https://ace.c9.io/)

**Forked from:** https://github.com/chairuosen/vue2-ace-editor - Which works with vue-electron, does not include emmet and uses [standardjs](standardjs.com) coding style.

## How to use

1. Install

    ```
    npm install vue2-ace-editor-electron --save
    ```
    
2. Require it in `components` of Vue options

    ```
    {
        components: {
            editor: require('vue2-ace-editor-electron'),
        },
    }
    ```
 
3. Require the editor's mode/theme module in custom methods
    
    ```
    {
        methods: {
            editorInit: function () {
                require('brace/mode/html')
                require('brace/mode/javascript')
                require('brace/mode/less')
                require('brace/theme/chrome')
            }
        },
    }
    ```
    
4. Use the component in template

    ```
    <editor v-model="content" @init="editorInit" lang="html" theme="chrome" width="500" height="calc(100vh)"></editor>
    ```
    
    prop `v-model`  is required
    
    prop `lang` and `theme` is same as [ace-editor's doc](https://github.com/ajaxorg/ace)
    
    prop `height` and `width` could be one of these:  `200`, `200px`, `50%`, `calc(100vh)`

---
_Source: https://npm.io/package/vue2-ace-editor-electron · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
