Hello,
Please forgive my ignorance and my english.
Im traying to create a new plugin to import pdf files. I got the trasnformPdfTotextCode.php, and i want to write on the editor the result. From my plugin.js of my new PDF plugin, im trying to get the text procesed of my transformPdfToTextCode.php usign the function $.get of jquery:
$.get( 'trasnformPdfTotextCode.php', function(data) {
$('.result').html(data);
var text=data;
editor.insertText(text);
});
But it doesn`t work. Where I must insert this code?? Only works inside the dialog instance CKEDITOR.dialog.add(.....
Thank you very much!!
Please forgive my ignorance and my english.
Im traying to create a new plugin to import pdf files. I got the trasnformPdfTotextCode.php, and i want to write on the editor the result. From my plugin.js of my new PDF plugin, im trying to get the text procesed of my transformPdfToTextCode.php usign the function $.get of jquery:
$.get( 'trasnformPdfTotextCode.php', function(data) {
$('.result').html(data);
var text=data;
editor.insertText(text);
});
But it doesn`t work. Where I must insert this code?? Only works inside the dialog instance CKEDITOR.dialog.add(.....
Thank you very much!!