filters MDL-24152 added a grey highlight to censor words for admin to see words being filtered.
This commit is contained in:
@@ -71,7 +71,7 @@ class filter_censor extends moodle_text_filter {
|
||||
foreach ($badwords as $badword) {
|
||||
$badword = trim($badword);
|
||||
if($this->_canseecensor()){
|
||||
$words[] = new filterobject($badword, '<span title="'.$badword.'">', '</span>',
|
||||
$words[] = new filterobject($badword, '<span class="censoredtexthighlight" title="'.$badword.'">', '</span>',
|
||||
false, false, $badword);
|
||||
} else {
|
||||
$words[] = new filterobject($badword, '<span class="censoredtext" title="'.$badword.'">',
|
||||
|
||||
@@ -83,6 +83,7 @@ table.formtable tbody th {background-color: transparent;background-image: none;}
|
||||
.unread {background: #FFD991;}
|
||||
|
||||
.censoredtext {color:#000000;background:#000000;}
|
||||
.censoredtexthighlight {color:#000000;background:#B0B0B0;}
|
||||
|
||||
.navigation select {background-color:#FFFFFF;}
|
||||
.navigation optgroup {background-color:#EEEEEE;}
|
||||
|
||||
Reference in New Issue
Block a user