2014032200-1.9.0_dev-tinymce_to_ck-bbd2daa1912deaef.php 367 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * Elgg 1.9.0-dev upgrade 2014032200
  4. * tinymce_to_ck
  5. *
  6. * Activates CKEditor if TinyMCE is active.
  7. * Deactivates TinyMCE.
  8. */
  9. $tiny = elgg_get_plugin_from_id('tinymce');
  10. if ($tiny instanceof \ElggPlugin && $tiny->isActive()) {
  11. $ck = elgg_get_plugin_from_id('ckeditor');
  12. if ($ck instanceof \ElggPlugin) {
  13. $ck->activate();
  14. }
  15. $tiny->deactivate();
  16. }