Mercurial Hosting > sceditor
comparison src/formats/xhtml.js @ 24:80a86fb8f2b7
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 09 Aug 2022 22:49:59 -0600 |
parents | a199722647d0 |
children | 80bf0adc9efd |
comparison
equal
deleted
inserted
replaced
23:c2a85b2ec677 | 24:80a86fb8f2b7 |
---|---|
504 | 504 |
505 /** | 505 /** |
506 * Init | 506 * Init |
507 * @return {void} | 507 * @return {void} |
508 */ | 508 */ |
509 base.init = function () { | 509 base.init = function (editor) { |
510 if (!isEmptyObject(xhtmlFormat.converters || {})) { | 510 if (!isEmptyObject(xhtmlFormat.converters || {})) { |
511 each( | 511 each( |
512 xhtmlFormat.converters, | 512 xhtmlFormat.converters, |
513 function (idx, converter) { | 513 function (idx, converter) { |
514 each(converter.tags, function (tagname) { | 514 each(converter.tags, function (tagname) { |
520 }); | 520 }); |
521 } | 521 } |
522 ); | 522 ); |
523 } | 523 } |
524 | 524 |
525 this.commands = extend(true, | 525 editor.commands = extend(true, |
526 {}, defaultCommandsOverrides, this.commands); | 526 {}, defaultCommandsOverrides, editor.commands); |
527 }; | 527 }; |
528 | 528 |
529 /** | 529 /** |
530 * Converts the WYSIWYG content to XHTML | 530 * Converts the WYSIWYG content to XHTML |
531 * | 531 * |