Skip to content

Cannot read property 'body' of undefined #2

Description

@adamgen

HTML:

<textarea class="SQLfield" name="SQLfield"></textarea>

SCRIPTS:

<script type="text/javascript" src="assets/jquery.min.js"></script>
<script type="text/javascript" src="assets/ace/ace.js"></script>
<script type="text/javascript" src="assets/ace/theme-twilight.js"></script>
<script type="text/javascript" src="assets/ace/mode-sql.js"></script>
<script type="text/javascript" src="assets/ace/jquery-ace.js"></script>

CALL:

<script type="text/javascript">
$('.SQLfield').ace({ theme: 'twilight', lang: 'sql' })
</script>

doesn't wok and in the console it shows:
Cannot read property 'body' of undefined

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions