You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[PowerPoint] (shapes) Updates to include 1.4 Shape enums (#1033)
* [PowerPoint] (shapes) Updates to include 1.4 Shape enums
* Refine text ranges HTML
* Update TextRange snippet to include ParagraphFormat and BulletFormat references
/** Default helper for invoking an action and handling errors. */
142
175
async function tryCatch(callback) {
143
176
try {
@@ -151,16 +184,20 @@ script:
151
184
template:
152
185
content: |-
153
186
<section class="ms-Fabric ms-font-m">
154
-
<p>This sample shows how to get selected text, and how to select specific text.</p>
187
+
<p>This sample shows how to get selected text, and how to select specific text.</p>
155
188
</section>
156
189
<section class="ms-Fabric samples ms-font-m">
157
-
<h3>Try it out</h3>
158
-
<button id="getSelectedTextRange" class="ms-Button"><span class="ms-Button-label">Get selected text range</span></button>
159
-
<br><button id="setSelectedTextRange" class="ms-Button"><span class="ms-Button-label">Selects the first 10 characters of the selected shape.</span></button>
160
-
<br><button id="changeColor" class="ms-Button"><span class="ms-Button-label">Change color of selected text</span></button>
161
-
<br><button id="saveTextSelection" class="ms-Button"><span class="ms-Button-label">Save text selection</span></button>
162
-
<br><button id="loadTextSelection" class="ms-Button"><span class="ms-Button-label">Load the saved selection</span></button>
163
-
<span id="outputSpan"></span>
190
+
<h3>Try it out</h3>
191
+
<p>Before choosing the <b>Get selected text range</b> button, add text to a slide and select some text.</p>
192
+
<button id="getSelectedTextRange" class="ms-Button"><span class="ms-Button-label">Get selected text range</span></button>
193
+
<button id="setSelectedTextRange" class="ms-Button"><span class="ms-Button-label">Selects first 10 characters of selected shape</span></button>
194
+
<button id="changeColor" class="ms-Button"><span class="ms-Button-label">Change color of selected text</span></button>
195
+
<button id="saveTextSelection" class="ms-Button"><span class="ms-Button-label">Save text selection</span></button>
196
+
<button id="loadTextSelection" class="ms-Button"><span class="ms-Button-label">Load the saved selection</span></button>
197
+
<button id="getSelectedTextRangeProperties" class="ms-Button"><span class="ms-Button-label">Get selected text range properties</span></button>
198
+
<h4>Output</h4>
199
+
<span id="outputSpan"></span>
200
+
<p>Output from choosing the <b>Get selected text range</b> button is displayed in this section.</p>
0 commit comments