How to add custom style to a word document? - macos

How to add a custom style to a word document using the word javascript API. I tried adding the styles by insertOoxml. It is not working. I want some of my custom styles to be available for use in the word javascript API so that I can change style of documents via my add-in. Also, is it possible to create new styles programmatically?

This is currently not supported but its a capability that we definitely will add in the future.
You can use a custom style if already present in the document, you just do range.font.style = "Name of the style".

Related

Not able to customize webchat sendbox(Form field)

I want to customize webchat send input field, by adding label tag above the input field and remove the placeholder and add send text instead of icon using react.
Currently, I have tweaked using javascript(Es6)
Unfortunately, at this time, there is no built in feature of Web Chat that allows the developer to alter the send box (beyond hiding / not hiding it). If you feel strongly about this as a feature others could benefit from, I would suggest you present it as a feature request on the BotFramework-WebChat repo. You can do so here.
The method you are using (i.e. altering the DOM directly) is the correct method.
Hope of help!

Microsoft translator widget not translating contents loaded dynamically(e.g. using ajax call)

We are trying to understand different language translation options for our mvc application.
We checked how Microsoft translator widget working. As per their document, we have added embedded script to our pages. It loaded translate button. it is translating content to selected language. But then after if any content loaded dynamically (e.g. making ajax call and loaded some partials in the page), it is not automatically convert to language. We need to again reset and re-select the language to convert again.
Note: In case of google translate widget, they are converting automatically all dynamic content after loading them.
We want same functionality using Microsoft translator widget. Is there any way to achieve this functionality?
Yes there is, Microsoft no longer supports the Translator widget and the available solution is to integrate the Translator Text API in your website or application. To do this you will need to subscribe to the Microsoft Translator Text API. Visit the Getting Started page at http://www.aka.ms/TranslatorGettingStarted and you will find the steps.

How to implement summernote using jquery

Steps-in-Detail
Where to Declare the pluggin.
How to customize the options.
Working Examples.
This is the concept which can replace a regular text-area
Please refer to Summernote api for customization.
Changes made in js pluggin will reflect the changes in UI.
We can Create Many things under one roof.
MarkitDown Api
summernote api
There are other replacements too, try to use markitdown editor, which gives to variegated themes and custom styles.

How to using ckeditor in Odoo

I expected integration CKEditor use for fields.Text() into Odoo application instead using default text field of Odoo.
You Can define by just fields.html , but make sure you are developing in only V8, because CKEditor is removed from V9.
You must have the ckeditor module installed and the field should be html fields:
body_html = fields.Html('Rich-text Contents')
You can also use a widget. Check the documentation of the module:
In your view definition, use widget="text_html" if you need just html
display. In the unlikely case you need specific features of ckeditor,
use widget="text_ckeditor4".

Is it possible to retrieve Lotus notes rich text without using Lotus notes api?

I need to create a application which receives a lotus note document file . Is it possible to retrieve Lotus notes rich text without using Lotus notes api?
You also can get rich text via http/https, using web API. HTTP task should be turned on to use this method.
Just use a request as follows:
server/databasefilepath/databasename/viewname/selectionkey/richtextitemname?OpenField
This will return you rich text item, transformed into html, that is realy userful.
Yes you can by using Domino XML Language (DXL). This renders an XML style format that you can then work through however it is complex if the user has added lots of bullet points, bolding the odd image etc.
You will have to use CreateDXLExporter() either in your app or rendered via web from a notes agent however once you have built it, each document will be available to you and in fact the entire database.
HTH
If you can't use HTTP task as shiv suggested, you can try this tool by Julian Robichaux http://www.nsftools.com/tips/NotesTips.htm#richtexttohtml.
Notes from the author:
This database has a script library that describes a technique allowing
you to get the contents of a regular Rich Text field as MIME/HTML,
even if that field isn't set to store contents as MIME.

Resources