Skip to content

Commit 35b165c

Browse files
fix plaintext editor
1 parent c62b68b commit 35b165c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

locallib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function pdfannotator_display_embed($pdfannotator, $cm, $course, $file, $page =
9090
$capabilities->useprintcomments = has_capability('mod/pdfannotator:printcomments', $context);
9191
// 3. Comment editor setting.
9292
$editorsettings = new stdClass();
93-
$editorsettings->active_editor = explode(',', get_config('core', 'texteditors'))[0];
93+
$editorsettings->active_editor = get_class(editors_get_preferred_editor(FORMAT_HTML));
9494

9595
$params = [$cm, $documentobject, $context->id, $USER->id, $capabilities, $toolbarsettings, $page, $annoid, $commid, $editorsettings];
9696
$PAGE->requires->js_init_call('adjustPdfannotatorNavbar', null, true);

shared/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
defined('MOODLE_INTERNAL') || die();
2626

2727
$plugin->component = 'mod_pdfannotator';
28-
$plugin->version = 2023052300;
28+
$plugin->version = 2023112900;
2929
$plugin->release = 'PDF Annotator v1.5 release 5';
3030
$plugin->requires = 2021051700;
3131
$plugin->maturity = MATURITY_STABLE;

0 commit comments

Comments
 (0)