You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Fuat Akal <ak...@fgcz.ethz.ch> on 2009/07/16 12:39:52 UTC
_editor_url is not set!
Dear All
While loading a page i get the error below:
"_editor_url is not set! ou should set this variable to the editor files
path; it should preferably be an absolute path, like in 'htmlarea', ..."
In the source of the page, I have this:
<script type="text/javascript">_editor_url =
"/<my_path>/htmlarea/";_editor_lang = "en";</script>
It looks ok to me, but it does not work. I googled a lot and think of a
serialization problem but i am not sure.
Could somebody please help us out? Any help would be precious.
Kind Regards
Fuat
Re: _editor_url is not set!
Posted by Fuat Akal <ak...@fgcz.ethz.ch>.
Hi Benjamin
Thank you for your e-mail. Unfortunately our mail server removed
your js attachment. Could you please zip them all and send again?
Kind Regards
Fuat
Benjamin Boksa wrote:
> Hi Fuat,
>
> I came across that error a few days ago (see [1]). It seems there is a
> problem with the execution order of JavaScripts in the head. As the
> problem only occurs sometimes I solved it by replacing the default
> htmlarea.js with a custom one that you can find attached (call it a
> "quick & dirty hack" for now) .
>
> However there was another really strange (and I mean _really strange_)
> error when deploying the application on Tomcat 5.5 on Windows: Some
> JavaScript used in the mattkruse-lib (selectbox.js or something) was
> delivered with its own content and the content of the original
> htmlarea.js (did I mention that the error was _really strange_?!). The
> exact same application works like a charm in Tomcat 5.5 on Linux
> (CentOS and Debian).
>
> Try to replace the default htmlarea.js with the one attached (use the
> attached xsl to rewrite the original script-tag). If that does not
> work and you are on Windows give Linux a try.
>
> Hope that helps - if you need further information let me know.
>
> Benjamin
>
>
>
> [1]
> http://www.nabble.com/CForms-JavaScript-loading-+-execution-error-td24406969.html
>
>
> Am 16.07.2009 um 12:39 schrieb Fuat Akal:
>
>> Dear All
>>
>> While loading a page i get the error below:
>>
>> "_editor_url is not set! ou should set this variable to the editor
>> files path; it should preferably be an absolute path, like in
>> 'htmlarea', ..."
>>
>> In the source of the page, I have this:
>>
>> <script type="text/javascript">_editor_url =
>> "/<my_path>/htmlarea/";_editor_lang = "en";</script>
>>
>> It looks ok to me, but it does not work. I googled a lot and think of
>> a serialization problem but i am not sure.
>>
>> Could somebody please help us out? Any help would be precious.
>>
>> Kind Regards
>> Fuat
>
Re: _editor_url is not set!
Posted by Benjamin Boksa <ma...@boksa.de>.
Hi Fuat,
I came across that error a few days ago (see [1]). It seems there is a
problem with the execution order of JavaScripts in the head. As the
problem only occurs sometimes I solved it by replacing the default
htmlarea.js with a custom one that you can find attached (call it a
"quick & dirty hack" for now) .
However there was another really strange (and I mean _really strange_)
error when deploying the application on Tomcat 5.5 on Windows: Some
JavaScript used in the mattkruse-lib (selectbox.js or something) was
delivered with its own content and the content of the original
htmlarea.js (did I mention that the error was _really strange_?!). The
exact same application works like a charm in Tomcat 5.5 on Linux
(CentOS and Debian).
Try to replace the default htmlarea.js with the one attached (use the
attached xsl to rewrite the original script-tag). If that does not
work and you are on Windows give Linux a try.
Hope that helps - if you need further information let me know.
Benjamin