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

Problem to move from HTML editor (WYSIWYG) a word #259

Open
montes2012 opened this issue Jun 3, 2014 · 13 comments
Open

Problem to move from HTML editor (WYSIWYG) a word #259

montes2012 opened this issue Jun 3, 2014 · 13 comments

Comments

@montes2012
Copy link

montes2012 commented Jun 3, 2014

I have trouble going from HTML editor (WYSIWYG) to word
possible what I want?

I'm trying Sample_26_Html.php Decompose Shared \ html and has no support for "
" "" </ span>


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@ivanlanin
Copy link
Contributor

Yes. We can't parse <span> right now. PHPWord's HTML parser is quite new (#231), so we're going to put this as a to do. If you have time, you can tweak the code and submit to us as pull request. Thanks.

@ivanlanin ivanlanin added this to the 1.0.0 milestone Jun 3, 2014
@montes2012
Copy link
Author

there are also problems with br

@hskrtich
Copy link
Contributor

hskrtich commented Jun 9, 2014

I am also seeing formating problems with the HTML importer. If I have some extra time I might pick up some of this work. I have also submitted a patch for the HTML importer where it wasnt working for me at all under PHP 5.3. See #270

@hskrtich
Copy link
Contributor

hskrtich commented Jun 9, 2014

I should also note that I have been having good success in using htmltodocx (https://htmltodocx.codeplex.com) instead of the built in HTML importer. It produces better results and only requires minor tweaks to get working with the latest version of PHPWord (name space stuff)

@montes2012
Copy link
Author

I am working with laravel 4.1, install following the steps https://github.com/PHPOffice/PHPWord, as I can use (https://htmltodocx.codeplex.com/) Might give me a small example?

@hskrtich
Copy link
Contributor

I will see if I can whip something up when I get in to the office tomorrow.

@montes2012
Copy link
Author

I would greatly appreciate it

@hskrtich
Copy link
Contributor

Ok here is an example a threw together, It isn't tested but you should get the gist. hah

https://gist.github.com/bskrtich/6c3cec68eacd3fb3012e

@ivanlanin
Copy link
Contributor

Nice. Thanks @bskrtich . So, shall we "adopt" htmltodocx like we adopt PclZip?

@andrew-kzoo
Copy link
Contributor

Thank you @bskrtich for your proof of concept work. It's great to see, and be able to see, the development of PHPWord and the use of pre-existing and stable projects. 😄

@Progi1984
Copy link
Member

@ivanlanin Normally, with the HTML Reader we should export a DOCX equivalent. No ?

@ivanlanin
Copy link
Contributor

@Progi1984 What I was thinking is to adopt some algorithm of htmltodocx into our infant HTML Reader.

@hskrtich
Copy link
Contributor

It would be nice to be able to pull in some code form this project to beef up the HTML reader.

@github-actions github-actions bot added the Stale label Nov 18, 2022
@Progi1984 Progi1984 removed the Stale label Nov 18, 2022
@PHPOffice PHPOffice deleted a comment from github-actions bot Jan 7, 2023
@Progi1984 Progi1984 modified the milestones: 1.2.0, Later Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants