Reputation: 5467
I use the file_browser_callback
option. Just like this fiddle in the documentation. I edited the sample so it gives an imageurl back and not a hard string. See for this the following fiddle.
The problem is that when you hit the button, the url of the image is set but when you leave the field, the change event isn't fired. Because of that, the image dimension aren't calculated. The event in the "image" plugin that should be fired is srcChange
. When you paste the imageurl by hand in the textbox and leave the field, the change event does get fired and the dimensions of the image are calculated!
Upvotes: 0
Views: 1253
Reputation: 5467
It seems that the file_browser_callback
is depricated. You have to use the file_picker_callback
instead. When I searched for the file_picker_callback
, I saw the following question.
TinyMCE4 file_picker_callback - return additional params
This gave me the answers to create a working filepicker.
Upvotes: 0