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

Not able to add styles to some tags and listitems in addhtml #2619

Open
jsharookh opened this issue Jun 7, 2024 · 0 comments
Open

Not able to add styles to some tags and listitems in addhtml #2619

jsharookh opened this issue Jun 7, 2024 · 0 comments

Comments

@jsharookh
Copy link

jsharookh commented Jun 7, 2024

I was trying create a document editor with mceeditor, But many styles like <h1 style="color: #ff0000; text-align:center">Hading</h1> is not working, but <p><span style="color: #ff0000;">Text</span></p> is working, And i tried passing html example in github examples with ol, li , they are also not working. What will be possible mistake am doing
$phpWord = new \PhpOffice\PhpWord\PhpWord(); $section = $phpWord->addSection(); \PhpOffice\PhpWord\Shared\Html::addHtml($section, $sHTMLData, false, false);

@Progi1984 Progi1984 added this to the 1.3.0 milestone Aug 18, 2024
@Progi1984 Progi1984 modified the milestones: 1.3.0, 1.3.1 Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants