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

How to use in custom plugins? #12

Open
bertoost opened this issue Feb 9, 2019 · 1 comment
Open

How to use in custom plugins? #12

bertoost opened this issue Feb 9, 2019 · 1 comment

Comments

@bertoost
Copy link

bertoost commented Feb 9, 2019

Is it possible to use this field in custom plugins?
For example;

{% if craft.app.plugins.isPluginEnabled('code-mirror') %}

    CODE MIRROR FIELD HERE

{% else %}
    {{ forms.textareaField({
        label: 'Template'|t('app'),
        name: 'template',
        value: template,
        rows: 8,
        errors: model.getErrors('template'),
    }) }}
{% endif %}

Couldn't find anything about it.. do you know?

@khalwat
Copy link

khalwat commented Nov 4, 2022

You can use Code Editor for this: https://github.com/nystudio107/craft-code-editor/

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

3 participants