Closed PhantomYdn closed 11 years ago
I use following workaround:
public static TinyMceBehavior createTinyMceBehavior()
{
return new TinyMceBehavior()
{
private static final long serialVersionUID = 4802148816874932787L;
@Override
public void renderHead(Component c, IHeaderResponse response)
{
response.renderJavaScript("var dlh = document.location.href; window.tinyMCEPreInit = {suffix:'', " +
"base: dlh.substring(0, dlh.indexOf('/',dlh.indexOf('://')+3))," +
"query:''};", "TinyMceBehavior.myhack");
super.renderHead(c, response);
}
};
}
Your workaround worked Phantom for fixing the icons, however it messes with my custom contentCss file:
What's being generated now is: /wicket/resource/wicket/resource/com.balamaci.web.util.tinymce.TinyMCETextArea/mymcesettings-ver-1322513305000.css
notice the double /wicket/resource appearing.
I have the same issue like balamaci. No custom_css is working for me
You can easily circumvent this issue by using
TinyMCESettings.lazyLoadTinyMCEResource( response );
or have a look what it does (most importantly: set the base path), and do that manually.
Please close this bug. It's also more than two years old.
Hello,
I have following page:
and
And durung loading of page I recive following:
By tracing of code I realize that baseURL can't be calculated in tinymce._init method because some incorrectness in:
because URL of script for tinymce to include is following:
../wicket/resource/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/tiny_mce_src-ver-1321430948000.js