3
3
from borg .localrole .interfaces import IFactoryTempFolder
4
4
from plone .app .content .browser .interfaces import IFolderContentsView
5
5
from plone .app .z3cform .utils import call_callables
6
- from plone .app .z3cform .widgets .relateditems import get_relateditems_options
6
+ from plone .app .z3cform .widgets .contentbrowser import get_contentbrowser_options
7
7
from plone .base .interfaces import IImagingSchema
8
8
from plone .base .interfaces import ILinkSchema
9
9
from plone .base .interfaces import IPatternsSettings
@@ -137,15 +137,15 @@ def tinymce(self):
137
137
server_url = self .request .get ("SERVER_URL" , "" )
138
138
site_path = portal_url [len (server_url ) :]
139
139
140
- related_items_config = get_relateditems_options (
140
+ contentbrowser_config = get_contentbrowser_options (
141
141
context = self .context ,
142
142
value = None ,
143
143
separator = ";" ,
144
144
vocabulary_name = "plone.app.vocabularies.Catalog" ,
145
145
vocabulary_view = "@@getVocabulary" ,
146
146
field_name = None ,
147
147
)
148
- related_items_config = call_callables (related_items_config , self .context )
148
+ contentbrowser_config = call_callables (contentbrowser_config , self .context )
149
149
150
150
configuration = {
151
151
"base_url" : self .context .absolute_url (),
@@ -156,7 +156,7 @@ def tinymce(self):
156
156
"pictureVariants" : self .picture_variants ,
157
157
"imageCaptioningEnabled" : self .image_captioning ,
158
158
"linkAttribute" : "UID" ,
159
- "relatedItems" : related_items_config ,
159
+ "relatedItems" : contentbrowser_config ,
160
160
"prependToScalePart" : "/@@images/image/" ,
161
161
"prependToUrl" : "{}/resolveuid/" .format (site_path .rstrip ("/" )),
162
162
"inline" : settings .inline ,
0 commit comments