Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1247614
D94.id228.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 21, 5:31 PM
Size
719 B
Mime Type
text/x-diff
Expires
Sat, Nov 22, 5:31 PM (10 h, 43 m)
Engine
blob
Format
Raw Data
Handle
810659
Attached To
D94: INP-1445 - Change CKEditor style loading to allow working on Front-End
D94.id228.diff
View Options
Index: core/units/helpers/fck_helper.php
===================================================================
--- core/units/helpers/fck_helper.php
+++ core/units/helpers/fck_helper.php
@@ -531,7 +531,9 @@
$stylesheet_folder_url = dirname($stylesheet_file) . '/';
$url_params = Array ('events[fck]' => 'OnGetsEditorStyles', 'no_pass_through' => 1, 'pass' => 'm');
- $styles_css = $this->Application->HREF('index', '_FRONT_END_', $url_params, 'index.php');
+
+ $prefix = $this->Application->isAdmin ? '_FRONT_END_' : '';
+ $styles_css = $this->Application->HREF('index', $prefix, $url_params, 'index.php');
}
else {
$stylesheet_folder_url = $this->Application->BaseURL(rtrim(EDITOR_PATH, '/'));
Event Timeline
Log In to Comment