Update ACE Editor to version 1.2.0
Previously, we were at an ACE editor published between 1.1.8 and 1.1.9. This caused multiple issues and was especially a problem for the upcoming pair programming feature. Further, updating ace is a long-time priority, see https://github.com/openHPI/codeocean/issues/250. Now, we are not yet updating to the latest version, but rather to the next minor version. This already contains breaking changes, and we are currently interested to keep the number of changes as low as possible. Further updating ACE might be still a future task. The new ACE version 1.2.0 is taken from this tag: https://github.com/ajaxorg/ace-builds/releases/tag/v1.2.0. We are using the src build (not minified, not in the noconflict version), since the same was used before as well. Further, we need to change our migration for storing editor events. Since the table is not yet used (in production), we also update the enum.
This commit is contained in:
96
vendor/assets/javascripts/ace/snippets/markdown.js
vendored
Executable file → Normal file
96
vendor/assets/javascripts/ace/snippets/markdown.js
vendored
Executable file → Normal file
@ -1 +1,95 @@
|
||||
define("ace/snippets/markdown",["require","exports","module"],function(e,t,n){"use strict";t.snippetText='# Markdown\n\n# Includes octopress (http://octopress.org/) snippets\n\nsnippet [\n [${1:text}](http://${2:address} "${3:title}")\nsnippet [*\n [${1:link}](${2:`@*`} "${3:title}")${4}\n\nsnippet [:\n [${1:id}]: http://${2:url} "${3:title}"\nsnippet [:*\n [${1:id}]: ${2:`@*`} "${3:title}"\n\nsnippet \nsnippet ${4}\n\nsnippet ![:\n ![${1:id}]: ${2:url} "${3:title}"\nsnippet ![:*\n ![${1:id}]: ${2:`@*`} "${3:title}"\n\nsnippet ===\nregex /^/=+/=*//\n ${PREV_LINE/./=/g}\n \n ${0}\nsnippet ---\nregex /^/-+/-*//\n ${PREV_LINE/./-/g}\n \n ${0}\nsnippet blockquote\n {% blockquote %}\n ${1:quote}\n {% endblockquote %}\n\nsnippet blockquote-author\n {% blockquote ${1:author}, ${2:title} %}\n ${3:quote}\n {% endblockquote %}\n\nsnippet blockquote-link\n {% blockquote ${1:author} ${2:URL} ${3:link_text} %}\n ${4:quote}\n {% endblockquote %}\n\nsnippet bt-codeblock-short\n ```\n ${1:code_snippet}\n ```\n\nsnippet bt-codeblock-full\n ``` ${1:language} ${2:title} ${3:URL} ${4:link_text}\n ${5:code_snippet}\n ```\n\nsnippet codeblock-short\n {% codeblock %}\n ${1:code_snippet}\n {% endcodeblock %}\n\nsnippet codeblock-full\n {% codeblock ${1:title} lang:${2:language} ${3:URL} ${4:link_text} %}\n ${5:code_snippet}\n {% endcodeblock %}\n\nsnippet gist-full\n {% gist ${1:gist_id} ${2:filename} %}\n\nsnippet gist-short\n {% gist ${1:gist_id} %}\n\nsnippet img\n {% img ${1:class} ${2:URL} ${3:width} ${4:height} ${5:title_text} ${6:alt_text} %}\n\nsnippet youtube\n {% youtube ${1:video_id} %}\n\n# The quote should appear only once in the text. It is inherently part of it.\n# See http://octopress.org/docs/plugins/pullquote/ for more info.\n\nsnippet pullquote\n {% pullquote %}\n ${1:text} {" ${2:quote} "} ${3:text}\n {% endpullquote %}\n',t.scope="markdown"})
|
||||
define("ace/snippets/markdown",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "# Markdown\n\
|
||||
\n\
|
||||
# Includes octopress (http://octopress.org/) snippets\n\
|
||||
\n\
|
||||
snippet [\n\
|
||||
[${1:text}](http://${2:address} \"${3:title}\")\n\
|
||||
snippet [*\n\
|
||||
[${1:link}](${2:`@*`} \"${3:title}\")${4}\n\
|
||||
\n\
|
||||
snippet [:\n\
|
||||
[${1:id}]: http://${2:url} \"${3:title}\"\n\
|
||||
snippet [:*\n\
|
||||
[${1:id}]: ${2:`@*`} \"${3:title}\"\n\
|
||||
\n\
|
||||
snippet \n\
|
||||
snippet ${4}\n\
|
||||
\n\
|
||||
snippet ![:\n\
|
||||
![${1:id}]: ${2:url} \"${3:title}\"\n\
|
||||
snippet ![:*\n\
|
||||
![${1:id}]: ${2:`@*`} \"${3:title}\"\n\
|
||||
\n\
|
||||
snippet ===\n\
|
||||
regex /^/=+/=*//\n\
|
||||
${PREV_LINE/./=/g}\n\
|
||||
\n\
|
||||
${0}\n\
|
||||
snippet ---\n\
|
||||
regex /^/-+/-*//\n\
|
||||
${PREV_LINE/./-/g}\n\
|
||||
\n\
|
||||
${0}\n\
|
||||
snippet blockquote\n\
|
||||
{% blockquote %}\n\
|
||||
${1:quote}\n\
|
||||
{% endblockquote %}\n\
|
||||
\n\
|
||||
snippet blockquote-author\n\
|
||||
{% blockquote ${1:author}, ${2:title} %}\n\
|
||||
${3:quote}\n\
|
||||
{% endblockquote %}\n\
|
||||
\n\
|
||||
snippet blockquote-link\n\
|
||||
{% blockquote ${1:author} ${2:URL} ${3:link_text} %}\n\
|
||||
${4:quote}\n\
|
||||
{% endblockquote %}\n\
|
||||
\n\
|
||||
snippet bt-codeblock-short\n\
|
||||
```\n\
|
||||
${1:code_snippet}\n\
|
||||
```\n\
|
||||
\n\
|
||||
snippet bt-codeblock-full\n\
|
||||
``` ${1:language} ${2:title} ${3:URL} ${4:link_text}\n\
|
||||
${5:code_snippet}\n\
|
||||
```\n\
|
||||
\n\
|
||||
snippet codeblock-short\n\
|
||||
{% codeblock %}\n\
|
||||
${1:code_snippet}\n\
|
||||
{% endcodeblock %}\n\
|
||||
\n\
|
||||
snippet codeblock-full\n\
|
||||
{% codeblock ${1:title} lang:${2:language} ${3:URL} ${4:link_text} %}\n\
|
||||
${5:code_snippet}\n\
|
||||
{% endcodeblock %}\n\
|
||||
\n\
|
||||
snippet gist-full\n\
|
||||
{% gist ${1:gist_id} ${2:filename} %}\n\
|
||||
\n\
|
||||
snippet gist-short\n\
|
||||
{% gist ${1:gist_id} %}\n\
|
||||
\n\
|
||||
snippet img\n\
|
||||
{% img ${1:class} ${2:URL} ${3:width} ${4:height} ${5:title_text} ${6:alt_text} %}\n\
|
||||
\n\
|
||||
snippet youtube\n\
|
||||
{% youtube ${1:video_id} %}\n\
|
||||
\n\
|
||||
# The quote should appear only once in the text. It is inherently part of it.\n\
|
||||
# See http://octopress.org/docs/plugins/pullquote/ for more info.\n\
|
||||
\n\
|
||||
snippet pullquote\n\
|
||||
{% pullquote %}\n\
|
||||
${1:text} {\" ${2:quote} \"} ${3:text}\n\
|
||||
{% endpullquote %}\n\
|
||||
";
|
||||
exports.scope = "markdown";
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user