Telerik Forums
KendoReact Forum
0 answers
93 views

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,
      }}
    />
  );
};

Thushan
Top achievements
Rank 1
 asked on 18 Oct 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Patrick
Top achievements
Rank 1
Iron
Iron
Iron
MIS
Top achievements
Rank 1
Ross
Top achievements
Rank 1
Marcin
Top achievements
Rank 1
Iron
Iron
Sean
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Patrick
Top achievements
Rank 1
Iron
Iron
Iron
MIS
Top achievements
Rank 1
Ross
Top achievements
Rank 1
Marcin
Top achievements
Rank 1
Iron
Iron
Sean
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?