Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed spellcheck_rpc resource reference

  • Loading branch information...
commit f983c0278853670f26999ce933bd2a5de9156bf0 1 parent 2bb6fb1
@lmccormack lmccormack authored
View
6 jdk-1.5-parent/tinymce-parent/tinymce/src/main/java/wicket/contrib/tinymce/settings/SpellCheckPlugin.java
@@ -18,6 +18,8 @@
package wicket.contrib.tinymce.settings;
import org.apache.wicket.Application;
+import org.apache.wicket.request.cycle.RequestCycle;
+import org.apache.wicket.request.resource.SharedResourceReference;
import wicket.contrib.tinymce.TinyMceBehavior;
@@ -33,8 +35,6 @@
private static final long serialVersionUID = 1L;
private static final String resourceKey = "spellcheck_rpc";
- private static final String resourceUrl = "resources/" +
- TinyMceBehavior.class.getCanonicalName() + "/" + resourceKey;
private PluginButton spellCheckButton;
@@ -65,7 +65,7 @@ public PluginButton getSpellCheckButton()
protected void definePluginSettings(StringBuffer buffer)
{
define(buffer, "spellchecker_languages", "+English=en");
- define(buffer, "spellchecker_rpc_url", resourceUrl);
+ define(buffer, "spellchecker_rpc_url", RequestCycle.get().urlFor(new SharedResourceReference(TinyMceBehavior.class, resourceKey), null).toString());
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.