Dynamically update content [question]
See original GitHub issueHello, I’ve searched a lot but couldn’t find a way to dynamically update content (previously saved html).
What I’ve found, that may be related to what I want, is these two methods editor.syncRegions(regionQuery)
stack.replaceRegions(regions)
, but can’t do anything with it, documentation is so unclear to me.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Can I dynamically update question text based on previous ...
Hey there, I'd like to dynamically update question text (or a simple text field) based on an answer given by the user earlier...
Read more >Questions With Dynamic Content - GoGuardian
Want to give students an item that asks students to solve a certain problem, but looks different for each student?
Read more >Provide notification of dynamic changes to content
Where dynamic content is updated either automatically or in response to a user action, make sure that users are notified of this update...
Read more >Dynamically update webpage with file content - Stack Overflow
Save this question. Show activity on this post. I need a simple solution to dynamically display on a webpage the content of a...
Read more >Dynamically Change Question Text of the Variable - ServiceNow
Hi, You can create different questions(variables), and control the visibility by UI Policy. Also, the way will be to create a sing variable ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK I think I get it 😃 I’m guessing that posts each have a unique ID and that at any one time there’s only one editable region (e.g you can only edit one post at a time).
If you don’t want to stop/start the editor when switching to a different post then my advice would be to do the following:
Replacing the region
<div class="post" data-editable data-name="post-123">
<div class="post" data-editable data-name="post-124">
syncRegions
against the editor which should then recognize the new region and forget the old one.@brunjick OK the
setContent
is now a method against theRegion
class and I’ve updated the documentation forsyncRegions
along the lines of our conversation.