This is an expected behavior in AEM. Since a dialog can contain multiple RTE's, at a time, only one RTE's toolbar should be visible.
Hence, it is decided to show the toolbar on clicking inside RTE.
Please take a look at below forum questions. Engineering team answer was mentioned in the below forum questions:
Hope this helps!
Yeah, I understand that.
The thing is after the behavior I've described you are unable to get RTE toolbar back on the screen.
It dissapears completely and won't even show up after clicking on RTE dialog.
So it's a bug, I believe.
We are facing one issue similar to this.When we add a rich Text editor and Number Field in a single dialog,First time while authoring it's working fine but when we re-open the dialog it's not allowing to edit the number field/Rich text editor and If there are any other drop-down fields, all are coming blank.Throwing below error.
Uncaught TypeError: Cannot read property 'sourceEditMode' of undefined