6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/6/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#657] HTML editing broken if services/editor not a subdirectory of Horde webroot
*
Your Email Address
*
Spam protection
Enter the letters below:
__.. .. ..__ . . (__ |\ ||__|| \|__| .__)| \|| ||__/| |
Comment
>>> *) lib/Horde/Editor/htmlarea.php, lines 28 & 29, what's that about? > >> > >> I have absolutely no idea what that's for. Jan, Marko? > > > > The first call includes templates/javascript/htmlarea.js, parsed > through services/javascript.php. This one sets the base URL of the > HTMLArea editor. The editor needs this URL to find all its scripts, > images and CSS files. We pass it through javascript.php because the > path depends on the 'webroot' setting. > > Maybe you can relocate the htmlarea scripts by only changing this file. > > > > The second call uses the capability of Horde::addScriptFile() to > create <!--a75c305b1c0a6022--><script> tags *without* parsing the > script files throug javascript.php. It includes the basic JS file for > the HTMLArea editor. This is the action that any client needs to take > that wants to use this editor. This way to call addScriptFile() also > requires the 'webroot' setting, not at call-time but when > Horde::includeScriptFiles() actually renders the > <!--a75c305b1c0a6022--><script> tags. > > > > This is the only way to keep the htmlarea code separate from the > Horde code and keep it updateable without needing to patch the code > each time.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers