Skip to content

Content Modeย #3994

@kof

Description

@kof

As a builder, I want to let a customer edit text and images without giving them the full power of the builder.

Here is how it can work:

Step 1. Add Content Edit mode to the panel (similar to Preview button at the top panel).

  • Remove Style panel
  • At left show Pages, Navigator, Assets
  • Disable Binding editing.
  • Disable Canvas drag.
  • Disable Tree drag.
  • In the properties panel, show only Link and Img tag default properties (but not ID or Class), do not allow add new properties.
  • Do not show/allow bindings editing (text editing in binded instances too).
  • Disable copy/paste
  • Add EditContent button
  • Enable text editing functionality.
  • Probably allow text editing in a single click instead of double click in Edit Mode.
  • Make edit styles (i.e. show "text" cursor on editable text)

Roll out without feature flag or public announcement.

Step 2. Add "content editor" Share link.

  • Do some system rest API checks to not allow patching styles, props (only img and link are allowed)
  • Free users can't share Content Edit Link
  • All shared links from Free users must not have Content Edit mode

Roll out without feature flag or public announcement.

Step 2.5 Add combo for modes

Step 3. Allow content Editors to upload and modify images

  • Roll out without feature flag or public announcement.

Step 4. Introduce the EditableBlock component.

EditableBlock
   - Templates (Designers can add components within a controlled template area.)
     - Header
     - Article 
     - Anything 
  - Header Edited By user
  - Article Edited By user   
  - Article Edited By user   

Roll out WITH public announcement.

After Step 5. Explore drag-and-drop functionality on the main canvas.

  • This step requires careful planning to avoid complexity that may lead to extensive development cycles.
  • Show rich text subcomponents settings & style panel during text edit i.e. link inside rich text

Steps | Issues from @johnsicili

  • (just noting) Seems odd to have the right panel when the majority of the time it just consumes valuable space. I don't have ideas right now. Maybe in the future we'll add link and image editing in canvas and can do without right panel for clients
  • - (known issue) Links are hard to edit when adding them inline
  • - I don't love image dimension fields exposed because I often reduce the dimensions to better optimize. But if they replace the image then I guess it doesn't matter.
  • - They can edit text content on XML. IDK if this is a problem.
  • - Add info about publishing permissions to tooltip (e.g., Can publish with this permission)
  • - Disable Show toggle

Steps from @kof

  • - Decide Content or Content Edit in share dialog?

Metadata

Metadata

Assignees

Labels

complexity:highMultiple weeks of work or moreprio:1The most important thing to work ontype:featFeatures and enhancements

Type

No type

Projects

Status

๐ŸŒ Released

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions