Default Value of Field type Texteditor

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tovoro
    Junior Member
    • Jul 2025
    • 1

    #1

    Default Value of Field type Texteditor

    Hello

    It would be great if we could use the texteditor in the default value of a custom field with type texteditor, so we could have some nicely formatted default values for fields in our Quotes for example.

    This is already mentioned on Github: https://github.com/espocrm/espocrm/issues/3331

    Is there a way to change this in the code and if yes, can someone point me in the right direction? Will it affect upgrades? I have not developed anything within espocrm yet.

    Thanks for your help
    Tobi



    Is your feature request related to a problem? Please describe. This should be fairly obvious - The way it is now, it is not possible to take advantage of the editor for the default value, it's only...
  • item
    Active Community Member
    • Mar 2017
    • 1536

    #2
    Hi,
    If i understand you can change the "view" of the field.. in upgrade safe.

    You can create a json at
    custom/Espo/Custom/Resources/metadata/entityDefs/YourEntity.json.

    PHP Code:

    {
        
    "fields": {
            
    "description": {
                
    "type""text",
                
    "view""views/fields/wysiwyg"    // This is the new view of out-of-box description field
            
    }

    clearCache and rebuild (from admin section)
    Try it .. i don't know how is in database but certainly perfect. (someone can correct if it's bad proposition)
    Last edited by item; Yesterday, 03:04 PM. Reason: EDIT : Zut, it's a Feature Request.. sorry
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

    Comment

    Working...