mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 19:03:14 +01:00
* Html Editor: Add a custom paragraph into block formating in order to get paragraph lines with no line-height
This commit is contained in:
parent
2df0095579
commit
9902308540
@ -144,6 +144,9 @@ var et2_htmlarea = (function(){ "use strict"; return et2_editableWidget.extend([
|
||||
mobile: {
|
||||
theme: 'silver'
|
||||
},
|
||||
formats: {
|
||||
customparagraph: { block: 'p', styles: {"margin-block-start": "0px", "margin-block-end": "0px"}}
|
||||
},
|
||||
min_height: 100,
|
||||
convert_urls: false,
|
||||
language: et2_htmlarea.LANGUAGE_CODE[egw.preference('lang', 'common')],
|
||||
@ -167,7 +170,7 @@ var et2_htmlarea = (function(){ "use strict"; return et2_editableWidget.extend([
|
||||
],
|
||||
toolbar: et2_htmlarea.TOOLBAR_SIMPLE,
|
||||
block_formats: "Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;"+
|
||||
"Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre",
|
||||
"Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre;Custom Paragraph=customparagraph",
|
||||
font_formats: "Andale Mono=andale mono,times;Arial=arial,helvetica,"+
|
||||
"sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book "+
|
||||
"antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;"+
|
||||
|
@ -429,7 +429,8 @@ class preferences_hooks
|
||||
'h4' => lang("Heading %1", '4'),
|
||||
'h5' => lang("Heading %1", '5'),
|
||||
'h6' => lang("Heading %1", '6'),
|
||||
'pre' => lang("Preformatted")
|
||||
'pre' => lang("Preformatted"),
|
||||
'customparagraph' => lang("Custom Paragraph")
|
||||
),
|
||||
'help' => 'Automatically start with this format block',
|
||||
'xmlrpc' => True,
|
||||
|
Loading…
Reference in New Issue
Block a user