This option controls how emf images are handled. If this option is provided, emf image blobs will be converted into png image blobs using the supplied function, which will then be pasted into the editor. If this option is not provided, the editor will remove the poor quality images, and show an error message.
Type: Function
tinymce.init({
selector: 'textarea', // change this value according to your HTML
plugins: 'powerpaste',
powerpaste_word_import: 'clean',
powerpaste_emf_processor: (blob) => {
return fetch('YOUR_IMAGE_URL').then(res => res.blob())
}
});|
Note
|
If only the image is selected, pasting it will succeed and the image will be inserted correctly. However, if the image is selected together with other types of content, such as text, the image will not be pasted and an error message will be displayed. |