Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for tinymce. more to come #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add support for tinymce. more to come #5

wants to merge 3 commits into from

Conversation

bludot
Copy link

@bludot bludot commented Sep 1, 2013

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.

@aloncarmel
Copy link

can you elaborate more on what type of object are you sending the docx function?

@bludot
Copy link
Author

bludot commented Dec 10, 2013

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).

@herringtown
Copy link

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.. ;))

ZerdaH added a commit to ZerdaH/DOCX.js that referenced this pull request Jun 5, 2014
Changes from a pull request on the original docx.js by user lengli: stephen-hardy#5
@bludot
Copy link
Author

bludot commented Jul 16, 2014

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
tag and i think a tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants