This example shows how to start Redactor X with settings. In this example, the source mode is disabled and the editor has a focus on the start.
<!DOCTYPE html>
<html>
<head>
<title>Redactor X</title>
<meta charset="utf-8">
<!-- css -->
<link rel="stylesheet" href="/your-dist-path/redactorx.min.css" />
</head>
<body>
<!-- element -->
<textarea id="entry">
<p>Content</p>
</textarea>
<!-- js -->
<script src="/your-dist-path/redactorx.min.js"></script>
<!-- call with settings -->
<script>
RedactorX('#entry', {
source: false,
editor: {
focus: true
}
});
</script>
</body>
</html>