Files
Orchard/src/Orchard.Web/Modules/TinyMce/ResourceManifest.cs
Dave Reed f333723f8a 17368: Multiple tinymce editors on a page broken in some browsers.
Problem was due to multiple init calls. We now no longer need any dynamic content in the init script, allowing this script to become a library and only included once.
Also made the tinymce init selection more specific to tinymce in case any other modules use the 'html' class at the same time as this.

--HG--
branch : 1.x
2011-03-28 16:26:39 -07:00

12 lines
450 B
C#

using Orchard.UI.Resources;
namespace TinyMce {
public class ResourceManifest : IResourceManifestProvider {
public void BuildManifests(ResourceManifestBuilder builder) {
var manifest = builder.Add();
manifest.DefineScript("TinyMce").SetUrl("tiny_mce.js", "tiny_mce_src.js");
manifest.DefineScript("OrchardTinyMce").SetUrl("orchard-tinymce.js").SetDependencies("TinyMce");
}
}
}