Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>There are a couple of PHP toolkits that you can use for this task, first off there's an early dev on on codeplex:</p> <pre><code>http://openxmlapi.codeplex.com/ </code></pre> <p>However you may b better off with one of the more mature ones:</p> <pre><code>http://holloway.co.nz/docvert/index.html http://www.phpdocx.com/ </code></pre> <p>Both of these can convert from docx to most of the popular formats, HTML included.</p> <p>Once you've converted to something like HTML, then you can use an onscreen editor such as tiny MCE:</p> <pre><code>http://www.tinymce.com/ </code></pre> <p>To provide in page rich editing capabilities, before finally using the above toolkits to convert back to DOCX or any other applicable format.</p> <h1>Update February 2014</h1> <p>Since I first wrote this reply things have moved on. The open xml kits I mentioned above are still valid, however in page editing is now more of a possibility than ever using the new HTML5 content editable and edit mode attributes.</p> <p>It's now insanely easy to add your own buttons (Using something like bootstrap) above a div that has a content editable attribute attached to it.</p> <p>Connecting the buttons to "document.execCommand" can then send, bold, italic, underline, link &amp; image creation, list insertion and all manner of other HTML constructions methods directly to this div without needing anything like tinyMce or another in page editor anymore.</p> <p>There is full details available on the Mozilla developer network, and I am planning o do a blog post on using this stuff very soon.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload