question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

Question: How to get the last text added

See original GitHub issue

Hey Etherpaders, Iā€™ve been struggling to find a way to implement a feature that highlights every user edition after entering in a ā€œsuggesting modeā€. I didnā€™t find a way to have the information of the new text added to apply the an attribute only on this part. What do you guys recommend to achieve it?

What Iā€™ve tried:

  1. Setting an attribute on contentCollectPre, but this applies the attribute on all line or all span (it does not get only the part edited).
  2. Clear the Authorship [1] of the all document and use the hook aceSetAuthorStyle to apply a special color for every author [2]. This is hacky and kinda works, but on long documents takes over 20 seconds to process the step [2] and the browser gets unresponsive as well. To [2] takes effect I need to reload the editor.

An example of this feature on Google Docs

ezgif com-video-to-gif

I know this is not the best place to ask questions, as this is not a Etherpad issue per se. Sorry if Iā€™m breaking any rule

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
JohnMcLearcommented, May 15, 2020

Holy crap thatā€™s a horrible UX šŸ—”ļø

I can see why you want to fix itā€¦

So stupid question, but are you familiar with the Timeslider? I ā€œthinkā€ you just want to see what edits user Y has made since point X in time? Why not just make timeslider only show edits from X rev and only follow Y user?

Their UX is horrible, donā€™t do that, please.

0reactions
joassouzacommented, May 16, 2020

I couldnā€™t agree more, their UX is horrible. Thanks for you help Jhon. Iā€™m gonna try something on that direction šŸ‘šŸ½

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get last text between two text? - flutter - Stack Overflow
You can try with below lines enter image description here. String text='Hello hi Monkey'; print("Lst Word: ${text.substring(text.
Read more >
Question & Answer Piping - SurveyMonkey Help
Click the question text or answer choice field into which you want to pipe a previous answer, and leave your cursor in the...
Read more >
Add and format text answer questions | iAuditor
This article shows you how to add and format text answer questions via the web app and the mobile app. Before you begin....
Read more >
Qualtrics - How to add a text box to a multiple choice question
Qualtrics - How to add a text box to a multiple choice question. ... Top 5 Excel Functions for Finance People (with end...
Read more >
Set rules for your form - Google Docs Editors Help
Set up rules for a question Ā· Open a form in Google Forms. Ā· Add one of the following types of questions: Short...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found