We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed0b236 commit 04ea002Copy full SHA for 04ea002
src/Umbraco.Web.UI.Client/src/views/propertyeditors/rte/rte.component.js
@@ -256,7 +256,7 @@
256
toolbar: editorConfig.toolbar,
257
model: vm.model,
258
getValue: function () {
259
- return vm.model.value.markup;
+ return vm.model.value.markup ?? "";
260
},
261
setValue: function (newVal) {
262
vm.model.value.markup = newVal;
@@ -348,7 +348,9 @@
348
// But I'm not sure it's needed, as this does not trigger the RTE
349
if(modelObject) {
350
modelObject.update(vm.model.value.blocks, $scope);
351
- vm.tinyMceEditor.fire('updateBlocks');
+ if (vm.tinyMceEditor) {
352
+ vm.tinyMceEditor.fire('updateBlocks');
353
+ }
354
onLoaded();
355
}
356
0 commit comments