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

convert multi widgets data attributes in python #23

Open
benzkji opened this issue Nov 7, 2018 · 2 comments
Open

convert multi widgets data attributes in python #23

benzkji opened this issue Nov 7, 2018 · 2 comments

Comments

@benzkji
Copy link
Member

benzkji commented Nov 7, 2018

use a config, for mapping multi widgets and other special cases.

for example the django-cms PageField:

CK...CONFIG = {'cms_page': '{cms_page_2}'}
@benzkji
Copy link
Member Author

benzkji commented Nov 7, 2018

# a default, working with the provided contrib link_model
CKEDITOR_LINK_ATTR_MODIFIERS = getattr(
    settings,
    'CKEDITOR_LINK_ATTR_MODIFIERS', {
        'cms_page': '{cms_page_2}'
    }
)

benzkji added a commit to benzkji/django-ckeditor-link that referenced this issue Nov 7, 2018
@benzkji
Copy link
Member Author

benzkji commented Apr 5, 2022

modifiers could also be callables, right, couldn't they?!

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

No branches or pull requests

1 participant