This example runs two editors on one page with a shared external toolbar (toolbar.target + toolbar.sharedTarget). Focus the first editor — it shows the path bar; focus the second — the path bar disappears because only that instance has pathbar: true.
Editor 1 — pathbar: true
Editor 2 — no path bar
<div id="shared-toolbar"></div>
<div id="entry-shared-a"></div>
<div id="entry-shared-b"></div>
const sharedToolbar = {
target: '#shared-toolbar',
sharedTarget: true
};
const app1 = Redactor('#entry-shared-a', {
pathbar: true,
toolbar: sharedToolbar
});
const app2 = Redactor('#entry-shared-b', {
toolbar: sharedToolbar
});
Only the focused editor’s toolbox is visible. Differences in per-instance options — such as pathbar — appear when that editor is active.