File tree Expand file tree Collapse file tree 1 file changed +103
-1
lines changed
html-components/list/web-editor Expand file tree Collapse file tree 1 file changed +103
-1
lines changed Original file line number Diff line number Diff line change 110110
111111 code
112112 {display : block;white-space : pre;background : whitesmoke}
113-
113+
114+
115+ th {
116+ text-align : left;margin-bottom : 10px
117+ }
118+ td , th {
119+ padding : 12px 8px ;
120+ }
114121 </ style >
115122
116123 </ head >
@@ -154,6 +161,101 @@ <h3>
154161 </ code >
155162
156163
164+ < h3 >
165+ initmod
166+ </ h3 >
167+
168+ < div >
169+ < p >
170+ the web-editor is setup as the main demo component and as such to simplify the demo's, all options within its
171+ initmod are optional
172+ </ p >
173+ < table >
174+ < tr >
175+ < th >
176+ name
177+ </ th >
178+ < th >
179+ description
180+ </ th >
181+ </ tr >
182+ < tr >
183+ < td >
184+ ext
185+ </ td >
186+ < td >
187+ the default loader helper
188+ </ td >
189+ </ tr >
190+ < tr >
191+ < td >
192+ $
193+ </ td >
194+ < td >
195+ the dom helper module
196+ </ td >
197+ </ tr >
198+ < tr >
199+ < td >
200+ menu | menumod
201+ </ td >
202+ < td >
203+ either the main menu or the menumod module
204+ </ td >
205+ </ tr >
206+ < tr >
207+ < td >
208+ ace
209+ </ td >
210+ < td >
211+ a global reference to ace editor, otherwise each instance of the web-editor
212+ will load its own ace editor, specifying this ensures its only loaded once
213+ </ td >
214+ </ tr >
215+ < tr >
216+ < td >
217+ fullsize
218+ </ td >
219+ < td >
220+ you can pass fullsize to initmod to specify the editor should be fullsize, this option
221+ is available as an attribute on the element tag itself, or as an option when initdom
222+ is called
223+ </ td >
224+ </ tr >
225+ < tr >
226+ < td >
227+ kd
228+ </ td >
229+ < td >
230+ when certain key combinations are pressed ctrl+enter for instance, web-editor will pass
231+ the keydown event to this funciton so the embedding module / document can handle keypreses
232+ </ td >
233+ </ tr >
234+ < tr >
235+ < td >
236+ embed
237+ </ td >
238+ < td >
239+ when the editor is embedded within another component, the root component can be passed
240+ to web-editor via this property, then ace editor can pick up its attributes from the
241+ root component
242+ </ td >
243+ </ tr >
244+ < tr >
245+ < td >
246+ on
247+ </ td >
248+ < td >
249+ used for callbacks for different types of events, probably the most common one is
250+ on.change, when the editors document changes the on.change callback is called,
251+ allowing the embedding module / document to respond to these events
252+ </ td >
253+ </ tr >
254+ </ table >
255+
256+ </ div >
257+
258+
157259 < h3 >
158260 API
159261 </ h3 >
You can’t perform that action at this time.
0 commit comments