Documentation
Code
template #
Type: String
Default: <pre></pre>
With this setting, you can change the code block template, for example:
ArticleEditor('#entry', {
css: '/your-article-dist-path/',
code: {
template: '<pre><code></code></pre>'
}
});
spaces #
Type: Number
Default: 4
This setting allows you to specify the number of spaces when you press tab
in a code block.
ArticleEditor('#entry', {
css: '/your-article-dist-path/',
code: {
spaces: 2
}
});
disable #
You can completely disable adding code, for this set the setting to false
.
ArticleEditor('#entry', {
css: '/your-article-dist-path/',
code: false
});