Skip to content

Commit

Permalink
Issue #152: Add wrapping form identifier as body_class
Browse files Browse the repository at this point in the history
  • Loading branch information
indigoxela committed Jan 18, 2025
1 parent fb734bc commit d4f0806
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/tinymce-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
if (!$('body').hasClass(skinClass)) {
$('body').addClass(skinClass);
}
// Add a class to the editing area body to allow styling per form.
options.body_class = 'form-' + element.form.id;

// Additional variables from hook.
for (let item in format.editorSettings.backdrop) {
Expand Down

0 comments on commit d4f0806

Please sign in to comment.