def METHOD_NAME(self):
    """
    data-pat-tinymce : JSON.stringify({
        relatedItems: {
          vocabularyUrl: config.portal_url +
            '/@@getVocabulary?name=plone.app.vocabularies.Catalog'
        },
        tiny: config,
        prependToUrl: 'resolveuid/',
        linkAttribute: 'UID',
        prependToScalePart: '/@@images/image/'
      })
    """
    generator = TinyMCESettingsGenerator(self.context, self.request)
    settings = generator.settings
    folder = aq_inner(self.context)
    # Test if we are currently creating an Archetype object
    if IFactoryTempFolder.providedBy(aq_parent(folder)):
        folder = aq_parent(aq_parent(aq_parent(folder)))
    if not IFolderish.providedBy(folder):
        folder = aq_parent(folder)
    if IPloneSiteRoot.providedBy(folder):
        initial = None
    else:
        initial = IUUID(folder, None)
    portal = get_portal()
    portal_url = portal.absolute_url()
    current_path = folder.absolute_url()[len(portal_url) :]
    image_types = settings.image_objects or []
    server_url = self.request.get("SERVER_URL", "")
    site_path = portal_url[len(server_url) :]
    related_items_config = get_relateditems_options(
        context=self.context,
        value=None,
        separator=";",
        vocabulary_name="plone.app.vocabularies.Catalog",
        vocabulary_view="@@getVocabulary",
        field_name=None,
    )
    related_items_config = call_callables(related_items_config, self.context)
    configuration = {
        "base_url": self.context.absolute_url(),
        "imageTypes": image_types,
        # Keep imageScales at least until https://github.com/plone/mockup/pull/1156
        # is merged and plone.staticresources is updated.
        "imageScales": self.image_scales,
        "pictureVariants": self.picture_variants,
        "imageCaptioningEnabled": self.image_captioning,
        "linkAttribute": "UID",
        # This is for loading the languages on tinymce
        "loadingBaseUrl": "{}/++plone++static/components/tinymce-builded/"
        "js/tinymce".format(portal_url),
        "relatedItems": related_items_config,
        "prependToScalePart": "/@@images/image/",
        "prependToUrl": "{}/resolveuid/".format(site_path.rstrip("/")),
        "inline": settings.inline,
        "tiny": generator.get_tiny_config(),
        "upload": {
            "baseUrl": portal_url,
            "currentPath": current_path,
            "initialFolder": initial,
            "maxFiles": 1,
            "relativePath": "@@fileUpload",
            "showTitle": False,
            "uploadMultiple": False,
        },
    }
    return {"data-pat-tinymce": json.dumps(configuration)}