mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00

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
12 lines
450 B
C#
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");
|
|
}
|
|
}
|
|
}
|