Skip to content

Commit

Permalink
Merge pull request #142 from craftcms/bugfix/cms-13850-disabled-field…
Browse files Browse the repository at this point in the history
…s-look

disabled fields look
  • Loading branch information
brandonkelly authored Feb 2, 2024
2 parents 57c1c2f + 4dbf5d1 commit a873790
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Added the `RemoveFormat` CKEditor plugin. ([#143](https://github.com/craftcms/ckeditor/issues/143))
- Added the `TodoDocumentList` CKEditor plugin. ([#148](https://github.com/craftcms/ckeditor/pull/148))
- Removed the `List`, `ListProperties`, and `TodoList` CKEditor plugins. ([#148](https://github.com/craftcms/ckeditor/pull/148))
- CKEditor fields now get a `not-allowed` cursor when viewing entry revisions. ([#142](https://github.com/craftcms/ckeditor/pull/142))

## 3.6.0 - 2023-09-13

Expand Down
6 changes: 5 additions & 1 deletion src/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,11 @@ protected function inputHtml(mixed $value, ElementInterface $element = null): st
*/
public function getStaticHtml(mixed $value, ElementInterface $element): string
{
return Html::tag('div', $this->prepValueForInput($value, $element) ?: ' ');
return Html::tag(
'div',
$this->prepValueForInput($value, $element) ?: ' ',
['class' => 'noteditable']
);
}

/**
Expand Down

0 comments on commit a873790

Please sign in to comment.