QUESTION: Allow to only edit text
Question
Hi there! I wonder if it's possible somehow to allow edit only text, or upload images, and restrict to change everything else? The purpose of that is to allow designer create website, and user will fill only content. Thank you in advance.
Answers (1)
Ok, I found solution for that #336 I did this
editor.DomComponents.getComponents().each(c => restrictUpdate(c));
restrictUpdate(component) {
component.set({
removable: false,
draggable: false,
droppable: false,
stylable: false,
copyable: false,
resizable: false,
editable: true,
selectable: true,
badgable: false,
highlightable: false
})
component.get('components').each(c => this.restrictUpdate(c))
}
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1692
Predefined non-changeable content blocks
Is it possible to create predefined content blocks with data you put in from your backend and which the user cannot change and only place o...
Issue #1096
[FEATURE REQUEST] Support rendering layouts which are not part of the editable content
Basically my use case is that I want to show a whole page - with header, menu(s) and footer - in the editor canvas, but only allow the user...
Issue #578
disable file upload in asset manager
is there way to disable asset upload, we want to force user to use approved images only and that to via asset manager dialog.
Issue #3019
[QUESTION] - Bind inner text/html (like div, p, h1) to Trait
Hi! I've created a custom trait, and I want to be allowed to change the content of the tags (in this case it's a H1 tag) based on the trait...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.