comparison src/sceditor.js @ 24:80a86fb8f2b7

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 09 Aug 2022 22:49:59 -0600
parents c2a85b2ec677
children 80bf0adc9efd
comparison
equal deleted inserted replaced
23:c2a85b2ec677 24:80a86fb8f2b7
4504 pluginManager = newPluginManager(base); 4504 pluginManager = newPluginManager(base);
4505 (options.plugins || '').split(',').forEach(function (plugin) { 4505 (options.plugins || '').split(',').forEach(function (plugin) {
4506 pluginManager.register(plugin.trim()); 4506 pluginManager.register(plugin.trim());
4507 }); 4507 });
4508 if ('init' in format) { 4508 if ('init' in format) {
4509 format.init.call(base); 4509 format.init(base);
4510 } 4510 }
4511 4511
4512 // create the editor 4512 // create the editor
4513 initEmoticons(); 4513 initEmoticons();
4514 initToolBar(); 4514 initToolBar();
4534 autoExpand(); 4534 autoExpand();
4535 appendNewLine(); 4535 appendNewLine();
4536 // TODO: use editor doc and window? 4536 // TODO: use editor doc and window?
4537 pluginManager.call('ready'); 4537 pluginManager.call('ready');
4538 if ('onReady' in format) { 4538 if ('onReady' in format) {
4539 format.onReady.call(base); 4539 format.onReady(base);
4540 } 4540 }
4541 }; 4541 };
4542 onEvent(globalWin, 'load', loaded); 4542 onEvent(globalWin, 'load', loaded);
4543 if (globalDoc.readyState === 'complete') { 4543 if (globalDoc.readyState === 'complete') {
4544 loaded(); 4544 loaded();