WordPress.org

Support

Support » Plugins and Hacks » Hacks » [Resolved] wp-tinymce-schema.js

[Resolved] wp-tinymce-schema.js

  • What is the purpose of this file?

    It says at the top:

    * Duck-punched by WordPress core to support a sane schema superset.
     *
     * Copyright, Moxiecode Systems AB
     * Released under LGPL License.

    But the file appears to contain much more than duck food!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jan Dembowski

    @jdembowski

    Brute Squad and Volunteer Moderator

    See http://en.wikipedia.org/wiki/Monkey_patch for an explanation of Duck-punched. Yes, I had to look it up also. 😉

    The file wp-includes/js/tinymce/wp-tinymce-schema.js is referenced in these files.

    wp-includes/js/tinymce/wp-tinymce.php line 36
    wp-includes/class-wp-editor.php line 576

    It’s just part of the TinyMCE editor that’s bundled with WordPress. From looking at the source code (way above my head BTW) it’s just needed to make it all work.

    Thanks.
    BTW I think wordpress has fully embraced the duck push/monkey_patch concept.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] wp-tinymce-schema.js’ is closed to new replies.
Skip to toolbar