Office.js How to select 2 ContentControls

Швецов Пётр 1 Reputation point
function selectTwo(){ 
   return {  
      var contentControls = context.document.contentControls;
      context.load(contentControls, "items");
      return context.sync().then(() => {
         return context.sync();

When I select the second Content Control I loose selection of the first. I just want to select both the first and the second.

There is some selectionMode enum ("Select" | "Start" | "End"). But the documentation says nothing of meaning of this enum options

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,646 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Laude 85,716 Reputation points


    Office development is currently not supported in the Q&A forums, the supported products are listed over here (more to be added later on).

    You can ask the experts in the dedicated Office development forum over here:

    (Please don't forget to accept helpful replies as answer)

    Best regards,

    0 comments No comments