WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wp-tinymce-schema.js (3 posts)

  1. Mike
    Member
    Posted 1 year ago #

    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!

  2. 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.

  3. Mike
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic