[horde] HTML Editor not loading, Debian Packaging Issue for php-horde-editor ?

Andy Dorman adorman at ironicdesign.com
Fri Oct 31 15:52:34 UTC 2014


On 10/31/2014 03:05 AM, Jan Schneider wrote:
>
> Zitat von Andy Dorman <adorman at ironicdesign.com>:
>
>> A couple of more data points in this HTML Editor mystery...
>>
>> I decided to do an experiment, since the Imp compose window is trying
>> to fetch /imp/core/loader.js (which is actually at
>> /usr/share/javascript/ckeditor/core), I temporarily added a symlink in
>> the imp code directory to point imp/core to ckeditor's core directory,
>> /usr/share/javascript/ckeditor/core.
>>
>> 1. This did NOT fix the problem with HTML editor.  When the compose
>> window opens we now get a 404 error for /imp/core/_bootstrap.js ...
>> and since _bootstrap.js is NOT part of ckeditor, there is no way it is
>> supposed to be in ckeditor's core directory.  So the symlink is NOT a
>> solution.
>>
>> 2. I am pleased to note however that address auto-completion is now
>> working.  I assume that is because the auto-completion js code  is
>> being loaded and executed and apparently doesn't need the
>> _bootstrap.js code.
>>
>> So there is something I am missing in the config's that could tell
>> Horde/Imp where to find the ckeditor and bootstrap js files.  I have
>> searched the Horde wiki and Google'd and found nothing so far.
>>
>> Any and all hints and suggestions would be welcome.
>>
>> Thanks,
>> --
>> Andy Dorman
>>
>> --
>> Horde mailing list
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>
> Of course you didn't find anything in the wiki, because this is some
> packaging issue in Debian. Please keep the discussion there.
>

Good point.  And my apologies if I am giving the impression this is a 
Horde problem.  I assume it is NOT because only a couple of us Debian 
users seem to be having it.

I am now trying to identify exactly what the issue is (and the fix if I 
can figure that out) so I can pass that along to the Debian Horde 
package manager.

So how does Horde/Imp determine what URL to use to load ckeditor files 
and _bootstrap.js and how to map those to the file system?

Please correct me if I am wrong, but I assume the default registry 
values for jsuri and jsfs determine where Horde looks for js files like 
ckeditor and twitter-bootstrap.

I have not been able to determine where Horde sets those.  There are 
comments in horde/config/registry.php, but I never see them being set.

However, it looks like /usr/share/horde/js directory contains Horde's 
javascript files and sym links to external js apps like ckeditor, so I 
assume that is what the default jsfs should point to.

There was no sym link for horde/js/ckeditor/core/ and I believe the 
Debian php-horde-editor package should set one (it sets several others).

So, to test if the fix is to add that sym link, I removed my temporary 
test horde/imp/core sym link pointing to the ckeditor/core directory and 
added a sym link in the horde/js directory 
/usr/share/horde/js/ckeditor/core -> /usr/share/ckeditor/core

And imp/core/ckeditor... failed to load.

So even when the Debian php-horde-editor package is fixed with the 
proper symlink, we are still going to be broken because Horde requests 
/imp/core/... and that is NOT mapped to horde/js/ckeditor/core/

So I am now back to trying to figure out how the requested URI 
/imp/core/... is determined and why it is not being mapped to the file 
system horde/js/ckeditor/core/ (which now correctly symlinks to 
ckeditor/core/)

-- 
Andy Dorman



More information about the horde mailing list