Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F727031
D94.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
Mon, Jan 6, 5:20 AM
Size
764 B
Mime Type
text/x-diff
Expires
Tue, Jan 7, 5:20 AM (3 d, 2 h ago)
Engine
blob
Format
Raw Data
Handle
537098
Attached To
D94: INP-1445 - Change CKEditor style loading to allow working on Front-End
D94.diff
View Options
Index: branches/5.3.x/core/units/helpers/fck_helper.php
===================================================================
--- branches/5.3.x/core/units/helpers/fck_helper.php
+++ branches/5.3.x/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