题库调整

dev_new_shixunsrepository
杨树林 5 years ago
parent 7237b34c9a
commit 3324ca4b52

@ -234,7 +234,8 @@ function QuillForEditor ({
const current = value const current = value
if (!deepEqual(previous, current)) { if (!deepEqual(previous, current)) {
setSelection(quill.getSelection()) setSelection(quill.getSelection())
if (typeof value === 'string') { if (typeof value === 'string' && value) {
// debugger
quill.clipboard.dangerouslyPasteHTML(value, 'api'); quill.clipboard.dangerouslyPasteHTML(value, 'api');
if (autoFocus) { if (autoFocus) {
quill.focus(); quill.focus();

@ -476,7 +476,7 @@ class Questionitem_banks extends Component {
this.setState({ this.setState({
item_type: item_type item_type: item_type
}) })
this.scrollToAnchor("Itembankstopid");
} }
render() { render() {
@ -515,6 +515,7 @@ class Questionitem_banks extends Component {
> >
</Itembankstop> </Itembankstop>
<div >
{ {
item_type && item_type === "SINGLE" ? item_type && item_type === "SINGLE" ?
@ -556,8 +557,7 @@ class Questionitem_banks extends Component {
"" ""
: "" : ""
} }
</div>
</div> </div>

@ -207,7 +207,6 @@ class SingleEditor extends Component{
}catch (e) { }catch (e) {
} }
} }
componentDidUpdate(prevProps) { componentDidUpdate(prevProps) {
//console.log("componentDidUpdate"); //console.log("componentDidUpdate");
@ -363,6 +362,7 @@ class SingleEditor extends Component{
// ////console.log(!exerciseIsPublish); // ////console.log(!exerciseIsPublish);
return( return(
<div className="padding20-30 signleEditor danxuano" id={qNumber}> <div className="padding20-30 signleEditor danxuano" id={qNumber}>
<style>{` <style>{`
.optionMdEditor { .optionMdEditor {
flex:1 flex:1
@ -421,7 +421,7 @@ class SingleEditor extends Component{
{ {
item===undefined||item===null||item===""? item===undefined||item===null||item===""?
<QuillForEditor <QuillForEditor
autoFocus={false}
imgAttrs={{width: '146px', height: '136px'}} imgAttrs={{width: '146px', height: '136px'}}
style={{ height: '166px'}} style={{ height: '166px'}}
placeholder="请您输入题干" placeholder="请您输入题干"
@ -431,7 +431,7 @@ class SingleEditor extends Component{
/> />
: :
<QuillForEditor <QuillForEditor
autoFocus={false}
imgAttrs={{width: '146px', height: '136px'}} imgAttrs={{width: '146px', height: '136px'}}
style={{ height: '166px'}} style={{ height: '166px'}}
placeholder="请您输入题干" placeholder="请您输入题干"
@ -472,7 +472,7 @@ class SingleEditor extends Component{
</p> </p>
<div className="mt10"></div> <div className="mt10"></div>
<QuillForEditor <QuillForEditor
autoFocus={false}
imgAttrs={{width: '146px', height: '136px'}} imgAttrs={{width: '146px', height: '136px'}}
style={{height: '166px' }} style={{height: '166px' }}
placeholder="请您输入题目解析" placeholder="请您输入题目解析"

Loading…
Cancel
Save