Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1046465
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
Sat, Jun 28, 7:21 PM
Size
719 B
Mime Type
text/x-diff
Expires
Sun, Jun 29, 7:21 PM (7 h, 54 m)
Engine
blob
Format
Raw Data
Handle
676513
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