Online Collaboration: Empowering Your Content with Lekhoniya - Subham-Mandal/lekhoniya.help GitHub Wiki
Online Collaboration: Empowering Your Content with Lekhoniya
Introduction
Empower your content with the ability to collaborate online using the Online Collaboration script, a creation by the talented developer Subham Mandal. Integrated into the web application Lekhoniya, and associated with the brand name onessssweb, this script harnesses the power of Firebase to enable real-time online collaboration and backups.
Overview
Uploading Content
The online function facilitates the upload of content to the Firebase Realtime Database. It includes user information and the ability to edit status, making it a robust solution for collaborative content creation.
function online() {
// ... (existing code)
let newText = document.getElementById("newText").value;
let datanode = document.getElementById("datanode").value;
const data = {};
data[datanode] = newText + "<input id='usermain' style='display:none' value='" + localStorage.getItem('lekhoniya-user') + "'/> <input id='canedit' style='display:none' value='noedit'>";
document.getElementById("backupdatax").value = newText + "<input id='usermain' style='display:none' value='" + localStorage.getItem('lekhoniya-user') + "'/> <input id='canedit' style='display:none' value='noedit'>";
// ... (existing code)
}
Uploading Editable Content
The onlineedit function extends the functionality to allow users to upload content with the ability to edit. This feature is particularly useful for collaborative editing scenarios.
function onlineedit() {
// ... (existing code)
let newText = document.getElementById("newText").value;
let datanode = document.getElementById("datanode").value;
const data = {};
data[datanode] = newText + "<input id='usermain' style='display:none' value='" + localStorage.getItem('lekhoniya-user') + "'/> <input id='canedit' style='display:none' value='yesedit'>";
document.getElementById("backupdatax").value = newText + "<input id='usermain' style='display:none' value='" + localStorage.getItem('lekhoniya-user') + "'/> <input id='canedit' style='display:none' value='yesedit'>";
// ... (existing code)
}
Copy to Clipboard
The copyToClipboard function allows users to easily copy the shareable URL to facilitate collaboration.
function copyToClipboard() {
// ... (existing code)
}
Usage Instructions
-
Upload Content: Use the
onlinefunction to upload content for collaborative viewing with no editing rights. -
Upload Editable Content: Utilize the
onlineeditfunction to upload content with the ability to edit, facilitating collaborative editing. -
Copy Shareable URL: Click the "Copy to Clipboard" button to copy the shareable URL for easy collaboration.
Conclusion
Online Collaboration, designed by the visionary Subham Mandal, transforms Lekhoniya into a collaborative powerhouse. Seamlessly integrated with the brand name onessssweb, this script leverages Firebase for real-time collaboration and content backups.
Feel free to connect with Subham Mandal for any inquiries, suggestions, or enhancements related to this script. Collaborate online effortlessly with the power of Lekhoniya!