Hi all,
Is there any export functionality on fckeditor? I need to create documents that may be exported to some format such pdf or odt. Is it possible? Is there any plugin on the web?
Thanks in advance.
Is there any export functionality on fckeditor? I need to create documents that may be exported to some format such pdf or odt. Is it possible? Is there any plugin on the web?
Thanks in advance.
Re: Export to a pdf
There is no such plugin that, at least I don't know any.
You could write such plugin and share it with others, I bet people would use it.
If you are using PHP, there are ready to use classes to convert HTML to PDF, like html2pdf for example.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Export to a pdf
Hello wiktor,
First of all, thanks for your reply! I'm beginning a full document processor and I have studied how to write/parse the xhtml generated to a xsl:fo.
I'm working with Java but I think that the xslt that will generate the fo output would be used by php editors.
It will take me a long time to develop but I'll try to open it to developers as soon as possible.
btw, there is a guide at ibm pages that points on how to parse html2fo.
http://www.ibm.com/developerworks/libra ... 2app/#main
Miguel.
Re: Export to a pdf
I'm in the process of attempting the exact same thing: creatings PDFs from FCKEditor content using Xalan + FOP. How did you manage, if at all, to get your FCKEditor content to later convert it into FO?
I already have everything est up for converting into FO and then a PDF, but I can't seem to get a hold of the FCKEditor content.
Thanks in advance,
Zlaktu The World Eater
Re: Export to a pdf
Look at this code:
<script type="text/javascript">
function transferData(iframe) {
// Get the editor instance that we want to interact with.
var oEditor = FCKeditorAPI.GetInstance('myeditor') ;
try {
// Set the editor contents (replace the actual one).
oEditor.SetHTML(iframe.contentWindow.document.body.innerHTML);
} catch(e) {
alert(e);
}
}
</script>
Considerations:
iframe is an iframe that downloads an html file from server and transfers its content to the editor.
'myeditor' is the instance name of the that is created like this: var oFCKeditor = new FCKeditor('myeditor') ;
I hope it helps you.
Miguel.
Re: Export to a pdf
There is a plugin I created to convert ckeditor text to pdf. Look for Convert 2 PDF plugin.