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

What is a nugget? #2

Open
tylerecouture opened this issue Oct 23, 2017 · 3 comments
Open

What is a nugget? #2

tylerecouture opened this issue Oct 23, 2017 · 3 comments

Comments

@tylerecouture
Copy link

tylerecouture commented Oct 23, 2017

Hi! I 'm trying to use this with django-summernote.

Here's my settings:

    'summernote': {
        'nugget': {
            'list': [  # list of your nuggets
                '<b>test nugget</b>',
                '[[code nugget 2]]',
                '[[code nugget 3]]'
            ]
        },
    },

In the editor's menu, it shows test nugget in bold, but when I click it I just get "undefined" in the editor.

I'm not sure I know how to use this? Can you provide a useful example of a nugget?

@pHAlkaline
Copy link
Owner

nugget: {
list: [
'[[Condo.title]]',
'[[Condo.address]]',
'[[Condo.addresstext]]',
'[[Customer.name]]',
'[[Customer.address]]',
'[[Date]]'
]
}

@pHAlkaline
Copy link
Owner

Use this a custom button to insert custom codes ( Nuggets ) in the editor

@tylerecouture
Copy link
Author

tylerecouture commented Nov 5, 2017

Is Condo a JavaScript object here? Or a django model?

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