Improved input appearance.

This commit is contained in:
Pierre HUBERT
2018-12-27 19:07:39 +01:00
parent 2890b03283
commit fdabb3e3fc
6 changed files with 586 additions and 7 deletions

View File

@ -117,7 +117,9 @@ ComunicWeb.components.posts.edit = {
format: 'bbcode',
height: "200px",
width: "100%",
toolbarExclude: "youtube,image,size,link"
icons: "material",
style: ComunicWeb.components.posts.form.sceditor_stylsheet,
toolbarExclude: "youtube,image,size,link,print,mail,emoticon,maximize"
});
//Create function to close modal

View File

@ -6,6 +6,11 @@
ComunicWeb.components.posts.form = {
/**
* SCEDITOR common options
*/
sceditor_stylsheet: "data:text/css;raw, body {font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif;font-size: 14px;line-height: 1.42857143;}",
/**
* Display post creation form
*
@ -51,16 +56,21 @@ ComunicWeb.components.posts.form = {
var inputMessageToolbarTarget = createElem2({
appendTo: newPostMessageContener,
type: "div"
type: "div",
class: "new-message-content-container"
});
sceditor.create(inputMessageTextarea, {
format: 'bbcode',
height: "200px",
height: "100px",
width: "100%",
toolbar: 'bold,italic,underline,subscript,superscript|' +
'left,center,right,justify|color|' +
'bulletlist,orderedlist|table,code,quote|source',
toolbar: 'bold,italic,underline,subscript,superscript,' +
'left,center,right,justify,color,' +
'bulletlist,orderedlist,table,code,quote,source',
emoticonsEnabled: false,
icons: "material",
//Hack : style a little iframe
style: this.sceditor_stylsheet,
toolbarContainer: inputMessageToolbarTarget
});