Built motion from commit 54a160d.|0.0.140
[motion.git] / public / bower_components / ckeditor-freeparams-plugin / README.md
1 Free Params Plugin for CKEditor 4
2 =================================
3
4 This plugin allow you to insert params from multiples grouped richcombos.
5
6 These parameters can be used later as template variables.
7
8
9 ## Installation
10
11 Extract the downloaded file into the CKEditor's **plugins** folder or use another path like:
12
13 ```javascript
14         CKEDITOR.plugins.addExternal('freeparams', 
15           '/bower_components/ckeditor-freeparams-plugin/freeparams/');
16 ```
17 ## Configuration
18
19 Define multipe rich combos in config.freeparams array:
20
21 ```javascript
22     var config = {
23       extraPlugins: 'freeparams',
24       freeparams: [
25       {
26         label: 'mylabel1',
27         title: 'mytitle1',
28         groups: [
29         {
30           label: 'group11',
31           values: [
32           {
33             value: '[value111]',
34             label: 'text111'
35           },
36           {
37             value: '[value112]',
38             label: 'text112'
39           }]
40         },
41         {
42           label: 'group12',
43           values: [
44           {
45             value: '[value121]',
46             label: 'text121'
47           },
48           {
49             value: '[value122]',
50             label: 'text122'
51           }]
52         }]
53       },
54       {
55         label: 'mylabel2',
56         title: 'mytitle2',
57         groups: [
58         {
59           label: 'group21',
60           values: [
61           {
62             value: '[value211]',
63             label: 'text211'
64           },
65           {
66             value: '[value212]',
67             label: 'text212'
68           }]
69         },
70         {
71           label: 'group22',
72           values: [
73           {
74             value: '[value221]',
75             label: 'text221'
76           },
77           {
78             value: '[value222]',
79             label: 'text222'
80           }]
81         }]
82       }]
83      };
84 ```