352 | | { |
353 | | id :'advanced', |
354 | | label :editor.lang.common.advancedTab, |
355 | | title :editor.lang.common.advancedTab, |
356 | | elements : |
357 | | [ |
358 | | { |
359 | | type :'vbox', |
360 | | padding :1, |
361 | | children : |
362 | | [ |
363 | | { |
364 | | type :'hbox', |
365 | | widths : [ '50%', '50%' ], |
366 | | children : |
367 | | [ |
368 | | { |
369 | | type :'text', |
370 | | id :'id', |
371 | | label :editor.lang.common.id, |
372 | | 'default' : '' |
373 | | }, |
374 | | { |
375 | | type :'text', |
376 | | id :'lang', |
377 | | label :editor.lang.link.langCode, |
378 | | 'default' : '' |
379 | | } |
380 | | ] |
381 | | }, |
382 | | { |
383 | | type :'hbox', |
384 | | children : |
385 | | [ |
386 | | { |
387 | | type :'text', |
388 | | id :'style', |
389 | | style :'width: 100%;', |
390 | | label :editor.lang.common.cssStyle, |
391 | | 'default' : '', |
392 | | commit : function( element ) |
393 | | { |
394 | | // Merge with 'elementStyle', which is of higher priority. |
395 | | var merged = this.getValue() + ( element.getCustomData( 'elementStyle' ) || '' ); |
396 | | element.setAttribute( 'style', merged ); |
397 | | } |
398 | | } |
399 | | ] |
400 | | }, |
401 | | { |
402 | | type :'hbox', |
403 | | children : |
404 | | [ |
405 | | { |
406 | | type :'text', |
407 | | id :'title', |
408 | | style :'width: 100%;', |
409 | | label :editor.lang.common.advisoryTitle, |
410 | | 'default' : '' |
411 | | } |
412 | | ] |
413 | | }, |
414 | | { |
415 | | type :'select', |
416 | | id :'dir', |
417 | | style :'width: 100%;', |
418 | | label :editor.lang.common.langDir, |
419 | | 'default' : '', |
420 | | items : |
421 | | [ |
422 | | [ editor.lang.common.notSet , '' ], |
423 | | [ |
424 | | editor.lang.common.langDirLtr, |
425 | | 'ltr' |
426 | | ], |
427 | | [ |
428 | | editor.lang.common.langDirRtl, |
429 | | 'rtl' |
430 | | ] |
431 | | ] |
432 | | } |
433 | | ] |
434 | | } |
435 | | ] |
436 | | } |
437 | | ], |
| 353 | dialogadvtab && dialogadvtab.createAdvancedTab( editor, { id:1, dir:1, classes:1, styles:1, title:1, lang:1 } ) |
| 354 | ], |