mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-11 10:36:54 +01:00
This adds a markdown editor that sends HTML to the server. It uses codemirror and some custom code to show a syntax highlighted textarea and some buttons to help editing (including a preview). Drafts get marked via an internal email header that causes the markdown editor to automatically start if a message composition is continued that was started using the markdown editor.
23 lines
769 B
JavaScript
23 lines
769 B
JavaScript
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
|
// Un-comment to generate bundle-stats.html
|
|
// import { bundleStats } from 'rollup-plugin-bundle-stats';
|
|
import terser from '@rollup/plugin-terser';
|
|
|
|
export default {
|
|
input: 'javascript/index.js',
|
|
output: [
|
|
{
|
|
file: 'markdown_editor.min.js',
|
|
format: 'es',
|
|
plugins: [terser()],
|
|
// Un-comment to generate bundle-stats.html
|
|
// assetFileNames: 'assets/[name].[hash][extname]',
|
|
// chunkFileNames: 'assets/[name].[hash].js',
|
|
// entryFileNames: 'assets/[name].[hash].js',
|
|
},
|
|
],
|
|
plugins: [nodeResolve()],
|
|
// Un-comment to generate bundle-stats.html
|
|
// plugins: [nodeResolve(), bundleStats()]
|
|
};
|