Skip to content

Commit

Permalink
fix plaintext editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Friederike-cil committed Dec 5, 2023
1 parent c62b68b commit 35b165c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function pdfannotator_display_embed($pdfannotator, $cm, $course, $file, $page =
$capabilities->useprintcomments = has_capability('mod/pdfannotator:printcomments', $context);
// 3. Comment editor setting.
$editorsettings = new stdClass();
$editorsettings->active_editor = explode(',', get_config('core', 'texteditors'))[0];
$editorsettings->active_editor = get_class(editors_get_preferred_editor(FORMAT_HTML));

$params = [$cm, $documentobject, $context->id, $USER->id, $capabilities, $toolbarsettings, $page, $annoid, $commid, $editorsettings];
$PAGE->requires->js_init_call('adjustPdfannotatorNavbar', null, true);
Expand Down
2 changes: 1 addition & 1 deletion shared/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die();

$plugin->component = 'mod_pdfannotator';
$plugin->version = 2023052300;
$plugin->version = 2023112900;
$plugin->release = 'PDF Annotator v1.5 release 5';
$plugin->requires = 2021051700;
$plugin->maturity = MATURITY_STABLE;

0 comments on commit 35b165c

Please sign in to comment.