HTML signature (closed #24)

New html editor (ckeditor integration)
This commit is contained in:
RainLoop Team 2014-02-07 03:22:39 +04:00
parent 320f92b1a8
commit f9c7de2920
74 changed files with 5731 additions and 2282 deletions

View file

@ -71,5 +71,5 @@
@import "SettingsThemes.less";
@import "Animations.less";
@import "Editor.less";
@import "HtmlEditorWrapper.less";
@import "_End.less";

View file

@ -1,184 +0,0 @@
.editorToolbar {
position: relative;
height: 20px;
margin-top: 10px;
line-height: 19px;
&.editorHideToolbar .editorToolbarButtom {
display: none;
}
.editorSwitcher {
display: inline-block;
vertical-align: middle;
}
.editorToolbarButtom {
display: inline-block;
width: 16px;
height: 16px;
padding: 3px;
a {
display: inline-block;
border: 0px;
margin: 0px;
padding: 0px;
width: 16px;
height: 16px;
cursor: default;
background: url('@{rlEditorSprite}');
&.bold { background-position: 0 0; }
&.italic { background-position: -16px 0; }
&.underline { background-position: -32px 0; }
&.strikethrough { background-position: -48px 0; }
&.link { background-position: -64px 0; }
&.unlink { background-position: -80px 0; }
&.orderedlist { background-position: -96px 0; }
&.unorderedlist { background-position: -112px 0; }
&.image { background-position: -128px 0; }
&.h1 { background-position: 0 -16px;}
&.h2 { background-position: -16px -16px;}
&.h3 { background-position: -32px -16px;}
&.h4 { background-position: -48px -16px;}
&.h5 { background-position: -64px -16px;}
&.h6 { background-position: -80px -16px;}
&.subscript { background-position: -96px -16px;}
&.superscript { background-position: -112px -16px;}
&.indent { background-position: -128px -16px;}
&.outdent { background-position: -144px -16px;}
&.horizontalrule { background-position: -160px -16px;}
&.p { background-position: -176px -16px;}
&.justifyleft { background-position: 0 -32px;}
&.justifycenter { background-position: -16px -32px;}
&.justifyright { background-position: -32px -32px;}
&.increasefontsize { background-position: -48px -32px;}
&.decreasefontsize { background-position: -64px -32px;}
&.forecolor { background-position: -80px -32px;}
&.backcolor { background-position: -80px -32px;}
&.removeformat { background-position: -144px 0;}
}
}
}
.textAreaParent {
padding: 0px;
.editorHtmlArea {
.box-sizing(border-box);
background: #fff;
color: #000;
border: 0px !important;
overflow: auto;
overflow-y: scroll;
font-family: Arial, Verdana, Geneva, sans-serif;
font-size: 13px;
line-height: 15px;
margin: 0px;
padding: 8px;
ul {
padding-left: 40px;
li {
list-style-type: disc !important;
}
}
ol {
padding-left: 40px;
li {
list-style-type: decimal !important;
}
}
blockquote {
border: 0;
border-left: solid 2px #444;
margin-left: 5px;
margin: 5px 0;
padding-left: 5px;
}
img {
vertical-align: bottom;
}
&.editorDragOver {
background: #ffffef;
}
}
.editorTextArea {
.box-sizing(border-box);
background: #fff;
color: #000;
display: block;
border: 0px !important;
width: 100%;
margin: 0px;
padding: 8px;
/*font-family: Monaco, Menlo, Consolas, 'Courier New', monospace;*/
font-family: Arial, Verdana, Geneva, sans-serif;
font-size: 13px;
line-height: 15px;
overflow: auto;
overflow-y: scroll;
}
}
.editorColorPicker {
.editorCpColors {
float: left;
margin: 0;
clear: both;
width: 128px;
border: 1px solid #000;
backgroud: #000;
.editorCpColor {
border: 1px solid #fff;
float: left;
width: 14px;
height: 14px;
}
}
}
.editorSwitcher {
.g-ui-link;
.pull-right;
padding-bottom: 6px;
}
.editorFontStylePicker {
.editorFpFonts {
padding: 5px;
border: 1px solid #000;
background-color: #fff;
.editorFpFont {
padding: 5px;
}
}
}

View file

@ -0,0 +1,152 @@
.html-editor-wrapper {
position: relative;
/*overflow: hidden;*/
}
.html-editor-wrapper-fullscreen {
border: 0;
padding: 0;
margin: 0;
overflow: hidden;
background: #fff;
height: 100%;
}
html.html-editor-wrapper-fullscreen .html-editor-wrapper {
position: absolute;
z-index: 1000;
top: 0;
left: 0;
right: 0;
bottom: 0;
height: auto !important;
width: auto !important;
}
.html-editor-wrapper-html, .html-editor-wrapper-plain {
background-color: #fff;
outline: none;
overflow: auto;
z-index: 1;
margin: 0;
border: 0;
padding: 10px;
font-family: arial,sans-serif;
font-size: 12px;
line-height: 16px;
color: #333;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.html-editor-wrapper-html:focus, .html-editor-wrapper-plain:focus {
border: 0;
}
.html-editor-wrapper-html.styled, .html-editor-wrapper-plain.styled {
border: 1px solid #cccccc;
-webkit-transition: border linear .2s, box-shadow linear .2s;
-moz-transition: border linear .2s, box-shadow linear .2s;
-o-transition: border linear .2s, box-shadow linear .2s;
transition: border linear .2s, box-shadow linear .2s;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
html.html-editor-wrapper-fullscreen .html-editor-wrapper-html.styled, html.html-editor-wrapper-fullscreen .html-editor-wrapper-plain.styled {
border: 0;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
.html-editor-wrapper-html.styled:focus, .html-editor-wrapper-plain.styled:focus {
border: 1px solid #999999;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.html-editor-wrapper-html {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
.html-editor-wrapper-plain {
position: relative;
width: 100%;
height: 100%;
resize: none;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
}
.html-editor-wrapper-mode-button, .html-editor-wrapper-fullscreen-button {
position: absolute;
top: 5px;
right: 25px;
z-index: 100;
color: #555;
text-decoration: underline;
font-family: Arial,Helvetica,Tahoma,Verdana,Sans-Serif;
font-size: 12px;
}
.html-editor-wrapper-mode-button:hover, .html-editor-wrapper-fullscreen-button:hover {
text-decoration: underline;
color: #555;
}
.html-editor-wrapper-fullscreen-button {
bottom: 30px;
}
.html-editor-wrapper-html ul {
padding-left: 40px;
}
.html-editor-wrapper-html ul li {
list-style-type: disc !important;
}
.html-editor-wrapper-html ol {
padding-left: 40px;
}
.html-editor-wrapper-html ol li {
list-style-type: decimal !important;
}
.html-editor-wrapper-html blockquote {
border: 0;
border-left: solid 2px #444;
margin: 5px 0 5px 5px;
padding-left: 5px;
}
.html-editor-wrapper-html img {
vertical-align: bottom;
}

View file

@ -7,6 +7,12 @@
padding: 14px 0;
}
.e-signature-place {
display: inline-block;
width: 600px;
height: 200px;
}
.list-table {
width: 600px;

View file

@ -1,4 +1,10 @@
.b-settings-identity {
.e-signature-place {
display: inline-block;
width: 600px;
height: 200px;
}
}