Add support for tinymce. more to come#5
Add support for tinymce. more to come#5bludot wants to merge 3 commits intostephen-hardy:masterfrom bludot:master
Conversation
|
can you elaborate more on what type of object are you sending the docx function? |
|
It's been a while back that I looked at Docx.js but I believe I am sending a node object to the docx function. It should be the body node inside the iframe of TinyMCE. (tinymce.activeEditor.getBody()); I did realize that the commit was a mute point when all I had to do is make TinyMCE write the html as xhtml. It does however make it easier to just use TinyMCE out of the box with Docx.js. If you want to see a demo of what I made http://bludotos.com/test/docs/test.php?code=q123hg . It is not really amazing (I didnt have time to elaborate). |
|
bludot -- could you elaborate a little more on your example? I'm inspecting the source, but not having a Eureka moment yet (probably b/c I haven't had my coffee yet this morning.. ;)) |
Changes from a pull request on the original docx.js by user lengli: stephen-hardy#5
|
Hi, Sorry for this late reply. Basically the example uses TinyMCE as an editor. If you make TinyMCE write as XHTML then Docx.js will work fine. I've added a few more exceptions in the code to see certain tags. It's been a while since I looked at it but I think one of them was a |
Added some tags and removed DOM from file. Makes it easier to just send the element. In this case the body of the tinyMCE iframe.