or
Hi
We have a list of names that we would like the user to pick and insert from a drop-down list located inside the editor.
We have created a custom tool for the drop-down list but am wondering as to how we can pass the list of names from the main editor component, into the custom tool. Any ideas?
const TargetEditor = ({names}) => {
return (
<Editor
tools={[
[Bold, Italic, Underline, Strikethrough],
NamesDropDownTool, // we want to pass the list of names (which can be changed by the parent control), into this custom tool
]}
contentStyle={{
height: 630,
}}
/>
);
};