Join the Webstudio community

Updated 6 months ago

doubt regarding CMS text content with newlines.

At a glance
is the code text the current best way to add cms text content which has multiple newlines or is there a way to make it work with other data text components?

do refer the image for context~
here im using notion as my cms. and the property item has newlines in it. as yu see the only working method i found was to use code text. but as yu see the text content on the variable shows it accurately. idk why it shows the output on the text component shows up like everything is mashed up?
Attachment
image.png
J
J
7 comments
i did try using content embed but still the same.
am i doing this wrong? or there's a better way to do this?
Attachment
image.png
have a project link?
dm if it contains an api key you dont want to share
as i needed to use hyperlink for the times there. i went with content embed instead. and used it as a list item. i found this method to work for me~

since im using notion, notion makes this text with links be hyperlinked. so i have to manually remove the formatting so it gets populated as a plain text in webstudio. but yea it works for now~

but yea as you see in the image, just inputting normal text or it still doesn't replicate the newline. so is this intentional or its not a feature yet?
for example - try adding this in text block -

Plain Text
00:00:00 - Start (Recording)
00:02:53 - Talk (Change Scene)
00:05:58 - Game (Change Scene)
00:08:05 - Talk (Change Scene)
00:08:14 - Audio issues (Manual)
00:08:54 - back to duolingo (Manual)
01:47:30 - V - Talk (Change Scene)
01:47:33 - Talk (Change Scene)
01:47:49 - done with duolingo and just chatting for now (Manual)
02:43:39 - Talk (Change Scene)
02:50:01 - Ending (Change Scene)
02:50:51 - End (Recording)

refer 2nd screenshot.
Attachments
image.png
image.png
yea i can dm if you still want to check the project for yourself!
this is your fix ๐Ÿ™‚
Attachment
image.png
Add a reply
Sign up and join the conversation on Discord