Is it possible to add and display a text document that can be edited on my live site?

Hi everyone,

I am trying to make a website for a workshop and was wondering if it is possible to have a text document on a page of the site that can be edited by users viewing my live site.

I attempted to embed a Google doc (so I could have pre-set content headers to frame the activity) but once the document is embedded, I cannot edit it on the live site. I can only view the content and copy the text.

I am wondering if it is possible to embed a Google doc that can be edited on a live site? Or is there some other way to accomplish this?

Thanks all


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

2 Likes

The editor view appears to IFRAME well enough.

  • Make certain you’re using the URL ending in /edit
  • Make certain your user has access permission to edit that document, and is logged in to Google.

image

Let me know if this gets abused, and I’ll delete it. Public editing is a “this might go very wrong” situation. Less of a risk if you’re managing the editor roles, so that you have traceability.

https://codepen.io/memetican/pen/rNbmojw/07891a07541be6f7614f53e57afa5ca8

2 Likes

Ah, of course! thank you for that note about making sure my link ended in"/edit". I was attempting to embed using G-doc’s embed code for their own document, but didn’t think to embed the link to the editor! Thank you for the tip.

is there a way to make the changes the use makes to the text update the cms?
I already linked a custom element set to div and with contenteditable to a CMS, but the edits on the live website don’t get saved.

hi @MartaG the original request was if student can edit live page in workshop. Let say that teacher does some design and let students to play with text. After page reload data are gone.

Technically speaking the content changes can be stored in YOUR browser eg. in local storage so this means that changes will be visible only to you in specific browser.

Be able to save data in CMS WF provides an “Editor” view who makes API requests to CMS.