Comments (5)
Hi @CaptainTammy ! Thanks for reaching out to us.
Looping in @EsterBergen to help with the issue.
Thanks!
from office-js.
@CaptainTammy - thanks for submitting. We'll look into this and respond soon.
from office-js.
@CaptainTammy -Is this specific to one platform or a version?
Can you provide details about the environment?
Your Environment
Platform [PC desktop, Mac, iOS, Office on the web]:
Host [Excel, Word, PowerPoint, etc.]: Powerpoint
Office version number:
Operating System:
Browser (if using Office on the web):
from office-js.
@EsterBergen
I don't think this is platform specific as we have encountered it on both Windows and Mac versions while developing.
Environment
Platform [PC desktop, Mac, iOS, Office on the web]: PC, Mac
Host [Excel, Word, PowerPoint, etc.]: Powerpoint
Office version number: Mac 16.82, Windows 2401
Operating System: MacOS, Windows
Browser (if using Office on the web): NA
from office-js.
Here are the repro steps:
- Create presentation with one slide, which have a tile text box as first shape.
- Add any web based add-in, for example web viewer
- In add-in's console run:
PowerPoint.run(async context => {
const slide = context.presentation.slides.getItemAt(0);
slide.shapes.load('items');
await context.sync();
const shape = slide.shapes.items.at(0);
shape.load('*');
await context.sync();
shape.textFrame.textRange.text = 'FIRST-LINE\nSECOND-LINE';
});
- Previous code should insert header FIRST-LINE\nSECOND-LINE in two lines
- Now try to read it, run in console:
Office.context.document.getSelectedDataAsync(Office.CoercionType.SlideRange, asyncResult => {
if (asyncResult.status === Office.AsyncResultStatus.Failed) {
console.log('ERR');
} else {
console.log('SUCCESS', asyncResult.value.slides[0]);
}
});
- no console log will be printed, code is stuck and nothing happens
- if I use \r instead of \n, everything works as expected.
Some resource: https://www.rdpslides.com/pptfaq/FAQ00992_Paragraph_endings_and_line_breaks.htm
I wonder, if we may have similar issues in another Office APIs...
from office-js.
Related Issues (20)
- body.clear() not working for content controls HOT 3
- How to make slide active Or How to insert image using index HOT 4
- Addin sample not showing in new look outlook and browsers. HOT 5
- Identifying Usage of New Outlook in Office-js Add-ins HOT 1
- Not able to sideload outlook addin. in macbook there is no option to add the manifest file HOT 5
- Inserting Signature with the OnMessageSend event duplicates the signature
- The identity API is not supported for this add-in in online Word HOT 2
- Excel Online: calculation state can get stuck in Pending state when workbook contains charts HOT 3
- IP Address Range Needed for Microsoft Office Add-in Validation Process
- Office API messageParent Outlook on android doesn't work
- NAA: Unable to acquire access token for event-based activation (onMessageSend) HOT 2
- Outlook addin using Bootstrap modal or offcanvas bleeds through on Mac version of Outlook. Classic and New Outlook for Mac. HOT 2
- [Word API] Document.compare: ability to specify Original and Revised document?
- Outlook NAA issue: "Something went wrong. [7q6cl]" Error HOT 5
- Web Outlook provides improper attachment data if attachment is still uploading to the email HOT 2
- [Question] Is it safe to use `CustomFunctions.delayinitialization()`
- New Outlook - emails stuck in outlook at queued or draft status HOT 3
- context.application.createDocument works only first time HOT 1
- WorkBook level Define name is getting corrupted while reopening excel using base64
- In Outlook, getAllInternetHeadersAsync works on an item in the Inbox, but not the sent folder
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from office-js.