Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Template Lists? #7

Open
JustinSomers opened this issue Jun 26, 2017 · 1 comment
Open

Multiple Template Lists? #7

JustinSomers opened this issue Jun 26, 2017 · 1 comment

Comments

@JustinSomers
Copy link

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
        });`
@celestialaly
Copy link
Owner

Hello !

It's not possible at the moment, but I can take a look 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants