Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1403628
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
Wed, Feb 25, 7:59 AM
Size
719 B
Mime Type
text/x-diff
Expires
Thu, Feb 26, 7:59 AM (8 h, 29 m)
Engine
blob
Format
Raw Data
Handle
899715
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