I need to implement the below functionality,
- Open multiple files (doc, pdf) in an editor.
- Edit functionality in the editor.
- Download ability of the edited files in any format (doc, pdf etc), keeping the text formatting as it is.
I was looking out for tinymce and ckeditor. But Could find any solution for opening multiple files and the download ability. Any starting points would help.
Below is some sample code from tinymce, here how can I populate the textarea content dynamically onclick of the custom Import button?
HTML Code:
<textarea>
<h1 style="text-align: center;">Welcome to the WYSIWYG editor demo!</h1>
<p>Right now import button does not work</p>
</textarea>
JS Code:
tinymce.init({
selector: 'textarea',
height: 500,
toolbar: 'importbtn',
menubar: false,
setup: function (editor) {
editor.addButton('mybutton', {
text: 'Import',
icon: false,
onclick: function () {
editor.insertContent(' <b>This is suppose to import a file</b> ');
}
});
}
});
Thanks in advance