By default, users can use and upload images to the image library from an HTML field. You can disable access to the image library from HTML fields. This is only applicable to HTML area and not TinyMCE.
Avant de commencer
Role required: admin
Procédure
-
Navigate to .
-
Select html_insert_image_dialog.
-
Locate the following lines of code in the HTML field and
comment them out.
<g:evaluate var="jvar_use_dbimage">
var imageGR = new GlideRecord('db_image');
if(imageGR.isValid())
imageGR.canRead();
</g:evaluate>
and
<j:if test= "${jvar_write_dbimage}">
<j:set var = "jvar_default_insert_image_type" value = "dbimage" />
<g:ui_select_option text = "${gs.getMessage('Image Library')}" value = "dbimage" selected = "${jvar_default_insert_image_type}" />
</j:if>
-
Select Update.
Que faire ensuite
To remove the Upload from URL option in the HTML editor, add
a new property named glide.ui.html.image.allow_url and set the
Value to false.