Skip to content

Multiple Template Lists? #7

Description

@JustinSomers

Hello. is there a way for me to have multiple template buttons that have varying values?

So I could do something similar to the following:

        $('#taBody').summernote({
            codemirror: { // codemirror options
                theme: 'monokai',
                lineNumbers: true
            },
            toolbar: [
                ['style', ['bold', 'italic', 'underline', 'clear']],
                ['insert', ['template', 'template', 'codeview']]
            ],
            template: {
                path: '../Content/summernote/templates/', //path location
                label: 'Recipient',
                tooltip: 'Recipient Informatiom',
                list: {
                    'Header': 'Header',
                    'FirstName': 'First Name',   //Path .html name: Display Name
                    'LastName': 'Last Name',
                    'Address1': 'Address 1',
                    'Address2': 'Address 2',
                    'City': 'City',
                    'State': 'State',
                    'Zip': 'Zip'
                   }
            },
            template: {
                path: '../Content/summernote/templates', //path location
                label: 'Claims',
                tooltip: 'Claim Informatiom',
                list: {
                    'MailToAddress': 'Mail To',
                    'AmountDue': 'Amount Due',   //Path .html name: Display Name
                    'SharesDue': 'Shares Due',
                    'CompanyName': 'Company Name',
                    'ClaimContact': 'Claim Contact',
                    'ClaimAddress1': 'Claim Address 1',
                    'ClaimCity': 'Claim City',
                    'ClaimState': 'Claim State',
                    'ClaimZip': 'Claim Zip'
                 
                }
            },
            height: 400
        });`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions