Set TinyMCE to readonly

This commit is contained in:
Bjarne Fyrstenborg
2024-11-15 22:59:42 +01:00
committed by Jacob Overgaard
parent 2d4230c001
commit e662468ecc

View File

@@ -276,7 +276,7 @@
// Readonly mode
baseLineConfigObj.toolbar = vm.readonly ? false : baseLineConfigObj.toolbar;
baseLineConfigObj.readonly = vm.readonly ? 1 : baseLineConfigObj.readonly;
baseLineConfigObj.readonly = vm.readonly ? true : baseLineConfigObj.readonly;
// We need to wait for DOM to have rendered before we can find the element by ID.
$timeout(function () {