Commit d7d8cbd7 by Рамис

fix bug scrolltop and min-height 260px

parent bfceae7b
...@@ -36,11 +36,6 @@ export default class QEditor extends React.Component { ...@@ -36,11 +36,6 @@ export default class QEditor extends React.Component {
this.setState({ this.setState({
init: true init: true
}); });
// const quill = this.quillRef.getEditor();
//
// quill.update(Quill.sources.USER);
} }
modules = { modules = {
...@@ -108,7 +103,7 @@ export default class QEditor extends React.Component { ...@@ -108,7 +103,7 @@ export default class QEditor extends React.Component {
'list', 'bullet', 'indent', 'list', 'bullet', 'indent',
'align', 'align',
'link', 'image', 'video', 'color', 'background', /* 'videoLocal', */ 'link', 'image', 'video', 'color', 'background', /* 'videoLocal', */
'formula' 'formula',
] ]
buildActionsModal (buttons = []) { buildActionsModal (buttons = []) {
...@@ -280,6 +275,7 @@ export default class QEditor extends React.Component { ...@@ -280,6 +275,7 @@ export default class QEditor extends React.Component {
onChangeSelection={(range, source, editor) => { onChangeSelection={(range, source, editor) => {
// console.log(range, source, editor.getText()); // console.log(range, source, editor.getText());
}} }}
scrollingContainer={'html'}
/> />
</div> </div>
<EditorModal <EditorModal
......
body{
overflow-y: scroll;
}
.atma-editor { .atma-editor {
position: relative; position: relative;
...@@ -36,6 +40,7 @@ ...@@ -36,6 +40,7 @@
&-editor{ &-editor{
overflow: visible; overflow: visible;
white-space: normal; white-space: normal;
min-height: 260px;
&:after{ &:after{
content: ""; content: "";
...@@ -48,6 +53,10 @@ ...@@ -48,6 +53,10 @@
font-size: 16px; font-size: 16px;
border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px;
} }
&-clipboard {
position: fixed !important;
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment