You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constunsavedChangesText=localizations&&localizations.unsavedChangesText ? localizations.unsavedChangesText : 'Changes may not be saved.'
11
+
constdocumentWriteWarning=localizations&&localizations.documentWriteWarningSettings ? localizations.documentWriteWarningSettings : 'Avoiding using document.write as per MDN documentation. This may result in editor not working properly.'
Copy file name to clipboardexpand all lines: visualcomposer/Helpers/Localizations.php
+4
Original file line number
Diff line number
Diff line change
@@ -2295,6 +2295,10 @@ public function getLocalizations()
2295
2295
'Warning: Custom JavaScript won\'t be saved. Avoid using document.write() as it can break the editor. Please refer to the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Document/write" target="_blank" rel="noopener noreferrer">MDN documentation</a> for more info.',
2296
2296
'visualcomposer'
2297
2297
),
2298
+
'documentWriteWarningSettings' => __(
2299
+
'Avoiding using document.write as per MDN documentation. This may result in editor not working properly.',
0 commit comments