@@ -226,51 +226,51 @@ class ToSlateVisitor {
226226 break ;
227227 case 'Heading' :
228228 result = {
229- ' object' : 'block' ,
230- ' data' : { } ,
231- ' type' : ToSlateVisitor . getHeadingType ( thing ) ,
232- ' nodes' : this . processChildNodes ( thing , parameters )
229+ object : 'block' ,
230+ data : { } ,
231+ type : ToSlateVisitor . getHeadingType ( thing ) ,
232+ nodes : this . processChildNodes ( thing , parameters )
233233 } ;
234234 break ;
235235 case 'ThematicBreak' :
236236 result = {
237- ' object' : 'block' ,
238- ' type' : 'horizontal_rule' ,
239- ' nodes' : [ ]
237+ object : 'block' ,
238+ type : 'horizontal_rule' ,
239+ nodes : [ ]
240240 } ;
241241 break ;
242242 case 'Linebreak' :
243243 result = {
244- ' object' : 'inline' ,
245- ' type' : 'linebreak'
244+ object : 'inline' ,
245+ type : 'linebreak'
246246 } ;
247247 break ;
248248 case 'Softbreak' :
249249 result = {
250- ' object' : 'inline' ,
251- ' type' : 'softbreak'
250+ object : 'inline' ,
251+ type : 'softbreak'
252252 } ;
253253 break ;
254254 case 'Link' :
255255 result = {
256- ' object' : 'inline' ,
257- ' type' : 'link' ,
258- ' data' : {
259- ' href' : thing . destination ,
260- ' title' : thing . title ? thing . title : ''
256+ object : 'inline' ,
257+ type : 'link' ,
258+ data : {
259+ href : thing . destination ,
260+ title : thing . title ? thing . title : ''
261261 } ,
262- ' nodes' : this . processChildNodes ( thing , parameters )
262+ nodes : this . processChildNodes ( thing , parameters )
263263 } ;
264264 break ;
265265 case 'Image' :
266266 result = {
267- ' object' : 'inline' ,
268- ' type' : 'image' ,
269- ' data' : {
267+ object : 'inline' ,
268+ type : 'image' ,
269+ data : {
270270 'href' : thing . destination ,
271271 'title' : thing . title ? thing . title : ''
272272 } ,
273- ' nodes' : [
273+ nodes : [
274274 {
275275 'object' : 'text' ,
276276 'text' : thing . text ? thing . text : '' ,
@@ -281,10 +281,10 @@ class ToSlateVisitor {
281281 break ;
282282 case 'Paragraph' :
283283 result = {
284- ' object' : 'block' ,
285- ' type' : 'paragraph' ,
286- ' nodes' : this . processChildNodes ( thing , parameters ) ,
287- ' data' : { }
284+ object : 'block' ,
285+ type : 'paragraph' ,
286+ nodes : this . processChildNodes ( thing , parameters ) ,
287+ data : { }
288288 } ;
289289 break ;
290290 case 'HtmlBlock' :
@@ -322,34 +322,34 @@ class ToSlateVisitor {
322322 break ;
323323 case 'List' :
324324 result = {
325- ' object' : 'block' ,
326- ' data' : { tight : thing . tight , start : thing . start , delimiter : thing . delimiter } ,
327- ' type' : thing . type === 'ordered' ? 'ol_list' : 'ul_list' ,
328- ' nodes' : this . processChildNodes ( thing , parameters )
325+ object : 'block' ,
326+ data : { tight : thing . tight , start : thing . start , delimiter : thing . delimiter } ,
327+ type : thing . type === 'ordered' ? 'ol_list' : 'ul_list' ,
328+ nodes : this . processChildNodes ( thing , parameters )
329329 } ;
330330 break ;
331331 case 'ListVariable' :
332332 /* XXX Will have to be changed to support editing of dynamic lists in the UI */
333333 result = {
334- ' object' : 'block' ,
335- ' data' : { tight : thing . tight , start : thing . start , delimiter : thing . delimiter , kind : 'variable' } ,
336- ' type' : thing . type === 'ordered' ? 'ol_list' : 'ul_list' ,
337- ' nodes' : this . processChildNodes ( thing , parameters )
334+ object : 'block' ,
335+ data : { tight : thing . tight , start : thing . start , delimiter : thing . delimiter , kind : 'variable' } ,
336+ type : thing . type === 'ordered' ? 'ol_list' : 'ul_list' ,
337+ nodes : this . processChildNodes ( thing , parameters )
338338 } ;
339339 break ;
340340 case 'Item' :
341341 result = {
342- ' object' : 'block' ,
343- ' type' : 'list_item' ,
344- ' data' : { } ,
345- ' nodes' : this . processChildNodes ( thing , parameters )
342+ object : 'block' ,
343+ type : 'list_item' ,
344+ data : { } ,
345+ nodes : this . processChildNodes ( thing , parameters )
346346 } ;
347347 break ;
348348 case 'Document' :
349349 result = {
350- ' object' : 'document' ,
351- ' nodes' : this . processChildNodes ( thing , parameters ) ,
352- ' data' : { }
350+ object : 'document' ,
351+ nodes : this . processChildNodes ( thing , parameters ) ,
352+ data : { }
353353 } ;
354354 break ;
355355 default :
0 commit comments