Any javascript (web-based) wysiwyg editor that produces xsl:fo

我与影子孤独终老i 提交于 2019-12-05 23:03:44

问题


I am having a hard time finding on OSS or commercial web-based (javascript) WYSIWYG* editor that produces XSL:FO. Would I would love to have the editor capable of doing...

  • The user is presented with common text-editor interface, not unlike the editor I am currently typing into to submit this question to SO.
  • The user is able to define all the structural components afforded by XSL:FO (new pages, new regions). Any "simplification" the editor can do (such as handling some of the implicit XSL:FO formatting necessary to place graphics and the like) would be helpful
  • Ability to create inline areas, such as lists and tables, add graphics, etc
  • Ability to style within the confines of the XSL:FO specification

(*) Since it is a WYSIWYG editor, there must be an ability to preview the document being created. Since XSL:FO requires an XLS:FO processor to translate into documents (RTF, PDF, etc etc) I would expect there to be a means to select which document type I would like to render, select "preview", and that document be rendered for preview (in an iframe, another window, whatever). I would expect this to require a server-side XSL:FO processor component as well. A bonus would be a "default" auto-preview that sends an AJAX request to the server to update the preview during a users content-creation "pause" (if the user doesn't add content for 5 seconds, auto-preview).


回答1:


You could try using TinyMCE or CKEditor, both let you control the features exposed to the user, then use a serverside library to convert the HTML into XML:FO. I was only able to find one library that does this, html2fo, but I don't think it supports the full range of features you're looking for.



来源:https://stackoverflow.com/questions/8590827/any-javascript-web-based-wysiwyg-editor-that-produces-xslfo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!