Posted by swortis on August 5, 2008 at 2:02pm
Jump to:
| Project: | WYMeditor |
| Version: | 5.x-2.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Wymeditor is by far the best editor available. Thank you for developing this module!
I've successfully implemented the 5.2 dev version on a number of site being developed. However, one site is giving me a hard time. With the module installed and Wymeditor as the input format this is what appears in the editing window:
{Wym_Tools}
{Wym_Containers}{Wym_Classes}
{Wym_Html}{Wym_Iframe}{Wym_Status}I've removed any possible conflicting modules on this site but still get the error. The module works fabulously on other sites on the same Drupal installation so I'm baffled. (Note: the error occurs with any theme.)
Hoping you might have seen this before and have a suggestion as to what to try next.
Comments
#1
Hi,
the same issue with me :(.
No idea about the reason. First WYMeditor was not showing at all, but after applying "dirty-fix" from http://drupal.org/node/269736, I see described above:
{Wym_Tools}
{Wym_Containers}{Wym_Classes}
{Wym_Html}{Wym_Iframe}{Wym_Status}
Any clue what this mean?
Edit: I saw on my Error Console "syntax error" on line 1070 in jquery.wymeditor.js.
Bellow is the function which is failing. It looks like some language related issue. I'm using localizer module, but still will need help.
WYMeditor.editor.prototype.replaceStrings = function(sVal) {
//check if the language file has already been loaded
//if not, get it via a synchronous ajax call
if(!WYMeditor.STRINGS[this._options.lang])
LINE_1070 eval(jQuery.ajax({url:this._options.langPath
+ this._options.lang + '.js', async:false}).responseText);
//replace all the strings in sVal and return it
for (var key in WYMeditor.STRINGS[this._options.lang]) {
sVal = sVal.replaceAll(this._options.stringDelimiterLeft + key
+ this._options.stringDelimiterRight,
WYMeditor.STRINGS[this._options.lang][key]);
};
return(sVal);
};
#2
I was finally able to at least get the non-functioning site to work. Not entirely sure though what the issue is. I did it by first disabling the module, and then duplicating the en.js file in ./modules/wymeditor/wymeditor/lang/ and renaming this duplicate en-IQ.js (as "en-IQ" is the default language on this site).
For good measure I deleted all references to wymeditor in the database and then re-enabled the module.
At the moment, it's working.
#3
Good work!
I've tried your solution, but with no success. After that I've made a copy of en.js and renamed it to bg.js (my site has Bulgarian for default) and now it is working.
10x for help