Restricted Editing & Link Checker
Safeguards for documents other people fill in and publish: restricted editing locks a template so only marked fields can change, and the link checker flags empty, unsafe and insecure links before they go out.
Offer letter
Dear [candidate name],
We are pleased to offer you the position of [job title], starting on [start date].
This offer is subject to the terms in the employee handbook and cannot be varied by this letter.
Before signing, read the employee handbook, the benefits summary and our privacy notice.
Status
Loading the editor...
Demo Code
<script src="/richtexteditor/rte.js"></script>
<script src="/richtexteditor/plugins/all_plugins.js"></script>
<div id="div_editor1">...</div>
<script>
var editor1 = new RichTextEditor("#div_editor1");
// --- restricted editing ---------------------------------------------------
// Regions marked data-rte-editable="true" stay editable; everything else is locked.
editor1.restrictedEditing.enable();
editor1.restrictedEditing.markSelection(); // make the selection an editable region
editor1.restrictedEditing.list(); // -> [element, ...]
editor1.restrictedEditing.goToNext(); // jump the caret to the next region
// --- link checker ---------------------------------------------------------
editor1.checkLinks().then(function () {
var issues = editor1.getLinkIssues(); // [{ code, severity, message, href, text }]
editor1.highlightLinkIssues();
});
</script>