diff --git a/src/editor.html b/src/editor.html index 971b638..e84b00f 100644 --- a/src/editor.html +++ b/src/editor.html @@ -1525,7 +1525,7 @@ // Get the contents var h = document.getElementById(editorId).innerHTML; - return h.replaceAll('wvb', 'REPLACE');; + return h ? h.replace(/wvb/g, 'REPLACE') : ''; } zss_editor.getTitleHTML = function() {