Questions tagged [firepad]

An open source collaborative code and text editor. Share documents and see changes occur in real-time.

Firepad is an open source module that developers can add to their web projects. It allows real-time collaboration on code as well as rich text. Behind the scenes, it uses operational transformations and Firebase for state synchronization and data persistence.

41 questions
1
vote
0 answers

How to get data after a particular timestamp from firebase

Firepad is storing all my content in a firebase real-time database. using javascript to get and store data in firebase. In my application there a page which has firepad to write content and also a save button to store that content in SQL. There is a…
1
vote
1 answer

FirePad - delete all revisions which are a number of days older than a certain snapshot

This is continuing from an old thread here https://groups.google.com/forum/#!topic/firepad-io/73dKYaUwTn4) The aim is to clean the database for documents which have many revisions over a long period I need help writing a function that issue a FB…
kofifus
  • 17,260
  • 17
  • 99
  • 173
1
vote
1 answer

Firepad text editor - text area not showing

I'm following the instruction from here to create a firepad editor. my code is: function init() { var firepadRef = getExampleRef(); var codeMirror = CodeMirror(document.getElementById('firepad-container'), { …
m2j
  • 1,152
  • 5
  • 18
  • 43
1
vote
1 answer

Exposing third-party lib (Firepad) methods in a React component

I've been searching for answers to this for a couple of weeks now, and I've read through everything related I could find (on SO, in React's docs, in the source for related libraries like react-codemirror, etc.), and can't find an answer I can…
Zac Anger
  • 6,983
  • 2
  • 15
  • 42
1
vote
0 answers

Error Initializing Firepad

I am trying to use Firepad. While trying to use firepad I am getting below error. In Firefox. Error: i.parentNode is…
Lalit Rane
  • 850
  • 10
  • 16
1
vote
2 answers

How can I make add firepad to my reactjs project?

So I've been learning react, and wanted to make a basic firepad instance. My current setup is having one container div in my index.html, and having all of my react components rendering through that div. My current attempts and the code I'm showing…
Dookie67
  • 59
  • 9
1
vote
1 answer

How do you apply security rules to Firepad?

I'd like to secure a Firepad. After my research, I discovered https://github.com/firebase/firepad/tree/master/examples/security, which lists some rules in .json for securing a Firepad. I have looked extensively at the Firepad docs, but cannot figure…
Ryan Shripat
  • 5,574
  • 6
  • 49
  • 77
1
vote
1 answer

How to find the text storage location of the firepad editor and how to clear the editor

I'm trying to create a custom editor for my personel need, Is there any way to delete the data which was entered by me before when I refresh the page?
Vipin
  • 847
  • 1
  • 10
  • 21
1
vote
1 answer

Firepad's color button does not change color of the text

I am using the userlist.html given in github. However the color drop down does not change the color of the text. Everything else works as expected. I also do not get any error in the console. PS: I am using codemirror with firepad. Any help is…
1
vote
3 answers

getSelection won't find selected text for me in custom text input

I'm using the new Firepad realtime text collaboration service. I would like to use the JavaScript getSelection method on text in the box that the user selects. However, my code isn't working for whatever reason. My JavaScript: function…
Rob
  • 852
  • 1
  • 9
  • 22
0
votes
2 answers

Firepad and CodeMirror 6

I couldn't find this information on either Firepad documentation or CodeMirror. I have read CodeMirror is npm bundle based. Is Firepad compatible with CodeMirror 6 ?
Magnetism
  • 13
  • 3
0
votes
1 answer

Get Firepad textarea element or current character while typing

I'm trying to implement a hashtag like behaviour in Firepad using JQuery. Is there any way of getting the textarea element or the character you are currently typing in the Firepad editor in order to, for example, when i type '#' trigger an event? I…
SGodoy
  • 703
  • 1
  • 5
  • 13
0
votes
0 answers

Angular Sample Code for Firepad and Codemirror

I am using angular 6 and firebase for the project. The goal is to use firepad code editor as it has live collaboration, open source also I am using firebase backend which helps. The example in the https://firepad.io/docs/#headless does not have…
Rahul Thawal
  • 241
  • 1
  • 3
  • 13
0
votes
1 answer

Hosting Firebase realtime database in house

I have a web application written in Angular 5.0,NodeJS as server and PostgreSQL as backend. I have integrated Firepad (https://firepad.io/) editor in my application to provide realtime editor functionality. Firepad editor uses Firebase realtime…
SoftLover
  • 101
  • 1
  • 12
0
votes
1 answer

codemirror.setOption('mode',val) isnt working

I am trying to make a text editor with firepad and codemirror, everything works perfectly on page loading, but when I try to change the mode on button click, the function gets called but codemirror.setOption('mode',val);//should change…
Ihab TALEB
  • 57
  • 1
  • 1
  • 10