]>
BookStack Code Mirror - bookstack/commitdiff
projects
/
bookstack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
inline
| side by side (parent:
93f92e9
)
Moved the code to the wysiwyg-editor file.
768/head
author
Abijeet
<redacted>
Sat, 14 Apr 2018 13:11:35 +0000
(18:41 +0530)
committer
Abijeet
<redacted>
Sat, 14 Apr 2018 13:11:35 +0000
(18:41 +0530)
Signed-off-by: Abijeet <redacted>
resources/assets/js/components/wysiwyg-editor.js
patch
|
blob
|
history
diff --git
a/resources/assets/js/components/wysiwyg-editor.js
b/resources/assets/js/components/wysiwyg-editor.js
index 5392332043e9bca56615be5e68c14a567bf33d9d..56aa294fadac9980d9f778a13b1a8d66de7ef388 100644
(file)
--- a/
resources/assets/js/components/wysiwyg-editor.js
+++ b/
resources/assets/js/components/wysiwyg-editor.js
@@
-346,7
+346,7
@@
class WysiwygEditor {
constructor(elem) {
this.elem = elem;
constructor(elem) {
this.elem = elem;
- this.plugins = "image table textcolor paste link autolink fullscreen imagetools code customhr autosave lists codeeditor";
+ this.plugins = "image table textcolor paste link autolink fullscreen imagetools code customhr autosave lists codeeditor
media
";
this.loadPlugins();
this.tinyMceConfig = this.getTinyMceConfig();
this.loadPlugins();
this.tinyMceConfig = this.getTinyMceConfig();
@@
-382,7
+382,7
@@
class WysiwygEditor {
valid_children: "-div[p|h1|h2|h3|h4|h5|h6|blockquote],+div[pre],+div[img]",
plugins: this.plugins,
imagetools_toolbar: 'imageoptions',
valid_children: "-div[p|h1|h2|h3|h4|h5|h6|blockquote],+div[pre],+div[img]",
plugins: this.plugins,
imagetools_toolbar: 'imageoptions',
- toolbar: "undo redo | styleselect | bold italic underline strikethrough superscript subscript | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table image-insert link hr drawio | removeformat code fullscreen",
+ toolbar: "undo redo | styleselect | bold italic underline strikethrough superscript subscript | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table image-insert link hr drawio
media
| removeformat code fullscreen",
content_style: "body {padding-left: 15px !important; padding-right: 15px !important; margin:0!important; margin-left:auto!important;margin-right:auto!important;}",
style_formats: [
{title: "Header Large", format: "h2"},
content_style: "body {padding-left: 15px !important; padding-right: 15px !important; margin:0!important; margin-left:auto!important;margin-right:auto!important;}",
style_formats: [
{title: "Header Large", format: "h2"},
@@
-401,6
+401,8
@@
class WysiwygEditor {
]},
],
style_formats_merge: false,
]},
],
style_formats_merge: false,
+ media_alt_source: false,
+ media_poster: false,
formats: {
codeeditor: {selector: 'p,h1,h2,h3,h4,h5,h6,td,th,div'},
alignleft: {selector: 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', classes: 'align-left'},
formats: {
codeeditor: {selector: 'p,h1,h2,h3,h4,h5,h6,td,th,div'},
alignleft: {selector: 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', classes: 'align-left'},
@@
-532,4
+534,4
@@
class WysiwygEditor {
}
}
-module.exports = WysiwygEditor;
\ No newline at end of file
+module.exports = WysiwygEditor;