2023-10-10 22:26:51 -04:00
export const fancy = {
2023-09-25 19:40:30 -04:00
branding : false ,
2023-10-10 22:26:51 -04:00
selector : "textarea#txt" ,
2023-09-25 19:40:30 -04:00
menubar : false ,
elementpath : false ,
formats : {
bold : {
2023-10-10 22:26:51 -04:00
inline : "b" ,
2023-09-25 19:40:30 -04:00
} ,
italic : {
2023-10-10 22:26:51 -04:00
inline : "i" ,
2023-09-25 19:40:30 -04:00
} ,
underline : {
2023-10-10 22:26:51 -04:00
inline : "u" ,
} ,
2023-09-25 19:40:30 -04:00
} ,
2023-10-10 22:26:51 -04:00
schema : "html5" ,
2023-09-25 19:40:30 -04:00
custom_colors : true ,
style_formats : [
// { title: 'Image formats' },
{
2023-10-10 22:26:51 -04:00
title : "Blocks" ,
2023-09-25 19:40:30 -04:00
items : [
2023-10-10 22:26:51 -04:00
{ title : "p" , block : "p" } ,
{ title : "div" , block : "div" } ,
{ title : "pre" , block : "pre" } ,
] ,
2023-09-25 19:40:30 -04:00
} ,
{
title : "Image" ,
items : [
2023-10-10 22:26:51 -04:00
{
title : "Image Left" ,
selector : "img" ,
styles : { float : "left" , margin : "0 10px 0 10px" } ,
} ,
{
title : "Image Right" ,
selector : "img" ,
styles : { float : "right" , margin : "0 0 10px 10px" } ,
} ,
{ title : "Rounded corners" , styles : { "border-radius" : "0.7em" } } ,
] ,
} ,
{
title : "Code/Monospace" ,
selector : "p,div,h1,h2,h3,h4,h5,h6" ,
classes : [ "font-mono" ] ,
2023-09-25 19:40:30 -04:00
} ,
] ,
toolbar_groups : {
alignment : {
2023-10-10 22:26:51 -04:00
icon : "align-left" ,
2023-09-25 19:40:30 -04:00
tooltip : "Alignment" ,
2023-10-10 22:26:51 -04:00
items : "alignleft aligncenter alignright | alignjustify" ,
2023-09-25 19:40:30 -04:00
} ,
heading : {
2023-10-10 22:26:51 -04:00
icon : "format" ,
tooltip : "Header" ,
items : "h1 h2 h3 h4 h5 h6" ,
} ,
2023-09-25 19:40:30 -04:00
} ,
2023-12-29 20:53:29 -05:00
toolbar : "undo redo | paste | bold italic underline | hr image link | forecolor styles | heading alignment | code" ,
2023-10-10 22:26:51 -04:00
contextmenu : "bold italic underline | hr | link | image | paste" ,
2023-09-25 19:40:30 -04:00
external_plugins : {
2023-10-10 22:26:51 -04:00
mentions : "/plugins/mentions/plugin.min.js" ,
2023-09-25 19:40:30 -04:00
} ,
plugins :
2023-10-10 22:26:51 -04:00
` advlist autolink lists link image charmap preview anchor searchreplace visualblocks advcode fullscreen insertdatetime media table help wordcount save mentions ` . split (
" " ,
) ,
} ;
2023-09-25 19:40:30 -04:00
export const comment = {
branding : false ,
height : 200 ,
menubar : false ,
elementpath : false ,
formats : {
bold : {
2023-10-10 22:26:51 -04:00
inline : "b" ,
2023-09-25 19:40:30 -04:00
} ,
italic : {
2023-10-10 22:26:51 -04:00
inline : "i" ,
2023-09-25 19:40:30 -04:00
} ,
underline : {
2023-10-10 22:26:51 -04:00
inline : "u" ,
} ,
2023-09-25 19:40:30 -04:00
} ,
external_plugins : {
2023-10-10 22:26:51 -04:00
mentions : "/plugins/mentions/plugin.min.js" ,
2023-09-25 19:40:30 -04:00
} ,
2023-10-10 22:26:51 -04:00
schema : "html5" ,
2023-09-25 19:40:30 -04:00
plugins :
2023-10-10 22:26:51 -04:00
` advlist autolink lists link image charmap preview anchor searchreplace visualblocks code fullscreen insertdatetime media table code help save mentions ` . split (
" " ,
) ,
toolbar : "bold italic underline | link" ,
contextmenu : "bold italic underline | paste | link" ,
} ;
2023-09-25 19:40:30 -04:00
export const story = {
branding : false ,
2023-10-10 22:26:51 -04:00
selector : "textarea#txt" ,
2023-09-25 19:40:30 -04:00
height : 500 ,
menubar : false ,
elementpath : false ,
2023-10-10 22:26:51 -04:00
formats : {
bold : {
inline : "b" ,
} ,
italic : {
inline : "i" ,
} ,
underline : {
inline : "u" ,
} ,
2023-09-25 19:40:30 -04:00
} ,
content_css : [ "/test.css" , "/quickfix.css" ] ,
2023-10-10 22:26:51 -04:00
schema : "html5" ,
plugins :
` advlist autolink lists link image charmap preview anchor searchreplace visualblocks code fullscreen insertdatetime media table advcode help wordcount save ` . split (
" " ,
) ,
2023-12-29 20:53:29 -05:00
toolbar : "undo redo | paste |" + "bold italic underline | hr | alignleft aligncenter " + "alignright alignjustify | " + "| code" ,
2023-10-10 22:26:51 -04:00
contextmenu : "bold italic underline | hr | paste | link" ,
} ;
2023-09-25 19:40:30 -04:00
export const bare = {
branding : false ,
height : 200 ,
menubar : false ,
elementpath : false ,
formats : {
bold : {
2023-10-10 22:26:51 -04:00
inline : "b" ,
2023-09-25 19:40:30 -04:00
} ,
italic : {
2023-10-10 22:26:51 -04:00
inline : "i" ,
2023-09-25 19:40:30 -04:00
} ,
underline : {
2023-10-10 22:26:51 -04:00
inline : "u" ,
} ,
2023-09-25 19:40:30 -04:00
} ,
2023-10-10 22:26:51 -04:00
schema : "html5" ,
2023-09-25 19:40:30 -04:00
external_plugins : {
2023-10-10 22:26:51 -04:00
mentions : "/plugins/mentions/plugin.min.js" ,
2023-09-25 19:40:30 -04:00
} ,
plugins :
2023-10-10 22:26:51 -04:00
` advlist autolink lists link image charmap preview anchor searchreplace visualblocks code fullscreen insertdatetime media table advcode help save mentions ` . split (
" " ,
) ,
toolbar : "bold italic underline | hr link" ,
contextmenu : "bold italic underline | paste | hr link" ,
} ;