Struct mdbook::theme::playpen_editor::PlaypenEditor
[−]
[src]
pub struct PlaypenEditor { pub js: Vec<u8>, pub ace_js: Vec<u8>, pub mode_rust_js: Vec<u8>, pub theme_dawn_js: Vec<u8>, pub theme_tomorrow_night_js: Vec<u8>, }
Integration of a JavaScript editor for playpens. Uses the Ace editor: https://ace.c9.io/. The Ace editor itself, the mode, and the theme files are the generated minified no conflict versions.
The PlaypenEditor
struct should be used instead of the static variables because
the new()
method
will look if the user has an editor directory in his source folder and use
the users editor instead
of the default.
You should exceptionnaly use the static variables only if you need the default editor even if the user has specified another editor.
Fields
js: Vec<u8>
ace_js: Vec<u8>
mode_rust_js: Vec<u8>
theme_dawn_js: Vec<u8>
theme_tomorrow_night_js: Vec<u8>