Files @ 3118e4c11c59
Branch filter:

Location: symposion_app/pinaxcon/widgets.py

Christopher Neugebauer
Friday fixes (#36)

* Monkey-patches a version of send_email that allows BCCs into the django accounts signup process. wtf, etc.

* Adds alt-text to site header

* Favicon.
from django import forms

class AceMarkdownEditor(forms.Textarea):

    def render(self, name, value, attrs):
        original = super(AceMarkdownEditor, self).render(name, value, attrs)
        ret = '''
                %s
                <script>
                    window.addEventListener("load", () => {
                        editor = loadEditor("%s");
                    }, 0);
                </script>
        ''' % (original, attrs["id"])

        return ret