cedar-embeddable-editor 1.1.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -3
- package/cedar-embeddable-editor.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -115,6 +115,7 @@ There are other optional configuration parameters available for controlling vari
|
|
|
115
115
|
"sampleTemplateLocationPrefix": "http://localhost:4240/cedar-embeddable-editor-sample-templates/",
|
|
116
116
|
"loadSampleTemplateName": "01",
|
|
117
117
|
"expandedSampleTemplateLinks": true,
|
|
118
|
+
"showTemplateDescription": false,
|
|
118
119
|
|
|
119
120
|
"showTemplateRenderingRepresentation": true,
|
|
120
121
|
"expandedTemplateRenderingRepresentation": false,
|
|
@@ -142,7 +143,9 @@ There are other optional configuration parameters available for controlling vari
|
|
|
142
143
|
"fallbackLanguage": "en",
|
|
143
144
|
|
|
144
145
|
"collapseStaticComponents": false,
|
|
145
|
-
"showStaticText": true
|
|
146
|
+
"showStaticText": true,
|
|
147
|
+
|
|
148
|
+
"readOnlyMode": false
|
|
146
149
|
}
|
|
147
150
|
```
|
|
148
151
|
|
|
@@ -272,7 +275,7 @@ In order to use an external language file, specify the config as follows:
|
|
|
272
275
|
}
|
|
273
276
|
```
|
|
274
277
|
|
|
275
|
-
In the example above we want to use a `German` language file, which is located in the specified directory. Starting the path with `/` makes the path absolute.
|
|
278
|
+
In the example above we want to use a `German` language file, which is located in the specified directory. Starting the path with `/` makes the path absolute.
|
|
276
279
|
|
|
277
280
|
In our case the `/assets/i18n-cee/de.json` will be loaded if present.
|
|
278
281
|
|
|
@@ -280,7 +283,7 @@ If the file is missing, the `/assets/i18n-cee/en.json` will be used.
|
|
|
280
283
|
|
|
281
284
|
If that file is also missing, the built-in `de` map would be the next. As this does not exist at this moment, the last option, the built-in `en` map will be used.
|
|
282
285
|
|
|
283
|
-
Information about the loading process is logged onto the console with the `CEE TRACE` prefix.
|
|
286
|
+
Information about the loading process is logged onto the console with the `CEE TRACE` prefix.
|
|
284
287
|
|
|
285
288
|
### Listening for changes
|
|
286
289
|
|
|
@@ -305,6 +308,14 @@ An example in Angular is:
|
|
|
305
308
|
}
|
|
306
309
|
```
|
|
307
310
|
|
|
311
|
+
### Viewer Mode
|
|
312
|
+
|
|
313
|
+
CEE can be used as a viewer to display metadata instances. This can be achieved by the following configuration setting:
|
|
314
|
+
|
|
315
|
+
```json
|
|
316
|
+
"readOnlyMode": true
|
|
317
|
+
```
|
|
318
|
+
When used in this mode, users won't be able to manipulate the metadata instance but can only read it.
|
|
308
319
|
## Example Applications
|
|
309
320
|
|
|
310
321
|
There is a sample applications you can use to demonstrate how to embed and use CEE.
|