Open gitesh-purbia opened 7 years ago
I am updating the image source after uploading it on server and replacing new image source. How can i update the model value after updating image source thorugh widget. Here is a sample code what i am doing :->
pluginsLoaded(event) { event.editor.widgets.on('instanceCreated', (evt) => { var widget = evt.data; widget.on('data', () => { widget.setData({ 'src': res.data.results.url, 'data-cke-saved-src': res.data.results.url }); }); }) }
I am updating the image source after uploading it on server and replacing new image source. How can i update the model value after updating image source thorugh widget. Here is a sample code what i am doing :->