I will look into this when I get home
Is it possible yet to style a Hyperlink with TextRun-styles, like calling .bold() ?
I'm writing in browser and try to convert user-generated input from an RTE.
4条回答 默认 最新
- 点赞 评论 复制链接分享
here you go
Essentially you add the hyperlink in a paragraph, then you can style it as per usual点赞 评论 复制链接分享
- weixin_39714191 2020-12-06 12:05
So there's no easy way to just call
.boldor similar, right? Usecase is translation of a frontend-website with RTE-Editor and including that in a docx, and as styling works on inline-element basis, either
<strong></strong>, styling individual text-runs is more appropriate than paragraphs. The docx-output is meant as a more flexible output so the user can be creative and adapt the output-file how he wants, so if it's not possible yet, that's fine.点赞 评论 复制链接分享
Ok I did some digging, and it is not yet possible
There's no way to apply styles to
TextRuns at the moment
Will do this in future点赞 评论 复制链接分享