Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
ProjectSoft-STUDIONIONS committed Oct 24, 2024
1 parent 0e68d11 commit 1b621f0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions site/assets/snippets/mcecss/plugin.mcecss.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
if (!defined('MODX_BASE_PATH')) {
http_response_code(403);
die('For');
}
$e =& $modx->event;
$params = $e->params;
$output = "";
switch($e->name){
case "OnRichTextEditorInit":
$output .= '<style>';
$output .= '.mce-container-body .mce-top-part {top: 0;position: sticky;}';
$output .= '</style>';
$e->output($output);
break;
}
?>

0 comments on commit 1b621f0

Please sign in to comment.