Skip to content

Commit 0306c49

Browse files
committed
updated README
1 parent fef24d4 commit 0306c49

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,23 @@ The directive allows you to pass a callback function through the `on-change` att
4444
<json-editor schema="mySchema" startval="myStartVal" buttons-controller="SyncButtonsController" on-change="onChange()">
4545
```
4646

47+
### Configuration and Plugins
48+
Configuring the JSONEditor object for plugins and styling is possible by injecting the JSONEditorProvider to your config function and calling the configure method.
49+
The object you pass to configure will be merged with the JSONEditor object.
50+
51+
```javascript
52+
angular.module('demoApp', ['angular-json-editor']).config(function (JSONEditorProvider) {
53+
JSONEditorProvider.configure({
54+
plugins: {
55+
sceditor: {
56+
style: 'sce/development/jquery.sceditor.default.css'
57+
}
58+
}
59+
});
60+
});
61+
62+
```
63+
4764
Building
4865
---------
4966

0 commit comments

Comments
 (0)