cyclejs-ace-editor
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -12,4 +12,4 @@ 'use strict'; | ||
break; | ||
case 'mode': | ||
editor.session.setMode(value); | ||
case 'sessionOptions': | ||
editor.session.setOptions(value); | ||
break; | ||
@@ -23,2 +23,7 @@ case 'readOnly': | ||
// Deprecated | ||
case 'mode': | ||
editor.session.setMode(value); | ||
break; | ||
default: | ||
@@ -25,0 +30,0 @@ throw new Error('Unrecognized configuration key: ' + key + ', use `editor$` sink and handle it on your own'); |
{ | ||
"name": "cyclejs-ace-editor", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Cycle.js wrapper for the Ace Editor", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -34,5 +34,8 @@ # cyclejs-ace-editor [![Build Status](https://travis-ci.org/tommy-the-runner/cyclejs-ace-editor.svg?branch=master)](https://travis-ci.org/tommy-the-runner/cyclejs-ace-editor) | ||
- `theme` | ||
- `mode` | ||
- `readOnly` | ||
- `fontSize` | ||
- `sessionOptions` - calls `editor.session.setOptions()` | ||
Supported, but deprecated: | ||
- `mode` - use `sessionOptions` instead | ||
@@ -39,0 +42,0 @@ ## Example |
@@ -6,4 +6,4 @@ export default function applyParam(editor, key, value) { | ||
break | ||
case 'mode': | ||
editor.session.setMode(value) | ||
case 'sessionOptions': | ||
editor.session.setOptions(value) | ||
break | ||
@@ -17,2 +17,7 @@ case 'readOnly': | ||
// Deprecated | ||
case 'mode': | ||
editor.session.setMode(value) | ||
break | ||
default: | ||
@@ -19,0 +24,0 @@ throw new Error('Unrecognized configuration key: ' + key + ', use `editor$` sink and handle it on your own') |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65349
390
76