HTML WYSIWYG-Field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CRM-BE
    Junior Member
    • May 2021
    • 13

    HTML WYSIWYG-Field

    Hello,
    I would like to load a file in the WYSIWYG-Field.
    Example:
    <a download="test.txt" href="data:text/plain;base64,aGVsbG8Kd29ybGQ=">Download</a>

    But this is probably ignored by the HTML.

    Thanks for ideas​
  • victor
    Active Community Member
    • Aug 2022
    • 727

    #2
    CRM-BE,

    To be honest, it's not entirely clear why upload files to the Wysiwyg field? For this, there is a field in EspoCRM with the File type, or Attachment Multiple (if you need to download several files).

    Comment

    • CRM-BE
      Junior Member
      • May 2021
      • 13

      #3
      Hello Victor,

      I would like to generate a text file from various data from an entity.



      Comment

      • shalmaxb
        Senior Member
        • Mar 2015
        • 1602

        #4
        i think, base64 as file will not work. Search in internet by search "summernote" (that is the editor).

        Comment

        • yuri
          Member
          • Mar 2014
          • 8440

          #5
          Summernote has nothing to do with this, I think.
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          • CRM-BE
            Junior Member
            • May 2021
            • 13

            #6
            Hi yuri,
            i have an extension called “HTML Dashlet”.
            The download works in the dashlet.

            I need a field type HTML for my entity
            or is there the possibility to create a TXT via formula-script?​

            Comment

            • yuri
              Member
              • Mar 2014
              • 8440

              #7
              I can't say for sure, this would need checking.

              You can create an attachment entity with record\create function. Try passing the text in the 'content' attribute.

              Note that you would also need to solve an access problem. Your attachment record should be accessible for regular users. You can assign the attachment to a specific parent (parentType and parentId attributes) or the 'related' field.
              If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

              Comment

              Working...