How to insert text with "Quill" CSS into document using .NET

HTML tag contains quill css alignment attributes which doesn’t support in aspose.word document while using builder insertHTML method.

Input Data:

test Left Align


test Center Align


test Right Align

is there any possibility to support quills css style in aspose.word document?

Thanks & Regards,
Shyamala B

@Shyamu

Please note that Aspose.Words mimics the behavior of MS Word. If you open the same HTML in MS Word and convert it to DOCX/PDF, you will get the same output.

We have logged your requirement as new feature in our issue tracking system. We will check the possibility of implementation of this feature. We will inform you via this forum therad once there is an update available on it. The issue ID is WORDSNET-21241

@Shyamu

In your case, we suggest you please use the following code example to achieve your requirement. Hope this helps you.

Document doc = new Document();
    DocumentBuilder builder = new DocumentBuilder(doc);
    builder.InsertHtml(@"
         <link href='https://cdn.quilljs.com/1.3.6/quill.snow.css' rel='stylesheet'>
         <div class='ql-editor'>
            <p>test Left Align</p>
            <p><br></p>
            <p class='ql-align-center'>test Center Align</p>
            <p><br></p>
            <p class='ql-align-right'>test Right Align</p>
         </div>");