How do i use TinyMCE jQuery package and what is the difference with TinyMCE jQuery plugin

前端 未结 3 2000
清酒与你
清酒与你 2020-12-09 16:28

I\'ve seen this post What is the TinyMCE jQuery Package? which explains what the v4 TinyMCE jQuery package is but the post and the tinymce site only contain examples of v3.<

3条回答
  •  星月不相逢
    2020-12-09 17:21

    Given the confusion over the jQuery "version" vs. jQuery "plugin", I though I would investigate as I am adding TinyMCE to an MVC jQuery project at the moment.

    I installed the raw TinyMCE NuGet package from Exphox (raw JS version) in one project and the TinyMCE.jQuery NuGet package in another project.

    I then compared folders, files, size etc with Araxis Merge, and then "prettified" the minified source code to examine the contents.

    Here are the NuGet results:

    The NuGet packages are identical with the exception of the single jquery.tinymce.min.js file, which was added to the TinyMCE.jQuery NuGet package.

    The jQuery file is just a straight-forward plugin to apply the MCE to jQuery elements!

    So, as far as the NuGet packages go, the jQuery version is nothing but a plugin implementing TinyMCE on jQuery elements. Nothing else!

    This goes against the comments found here http://www.tinymce.com/tryit/3_x/jquery_version.php that state:

    This example loads a specific jQuery version of TinyMCE this version is a bit smaller since it doesn't include some redundant logic such as the Sizzle engine.

提交回复
热议问题