When a record's TCA contains multiple rich text editors, and more than one has the bw_icons CKEditor plugin configured in the toolbar, trying to insert an icon into RTE 1..N-1 results into the icon being inserted to RTE N instead (the last one).
Analysis
plugin.js defines a global iconPicker variable that is overridden with each RTE initialization and finally points to the last RTE.
Solution
Associate this iconPicker to the corresponding editor instead.
Problem
When a record's TCA contains multiple rich text editors, and more than one has the bw_icons CKEditor plugin configured in the toolbar, trying to insert an icon into
RTE 1..N-1
results into the icon being inserted toRTE N
instead (the last one).Analysis
plugin.js
defines a globaliconPicker
variable that is overridden with each RTE initialization and finally points to the last RTE.Solution
Associate this
iconPicker
to the corresponding editor instead.