如问题中所述,我制作了多个CKEDitor,但是它们目前很笨拙,每当我开始输入它们时,它就会变成越野车。其中一个文本框具有值,并且在键入时,文本值开始变得不稳定。我正在使用此库Migrating to AndroidX,下面是代码。任何帮助表示赞赏。
代码
import CKEditor from "react-ckeditor-component";
<div className="col-xs-5 col-sm-5 col-md-5 col-lg-5">
<div className="panel panel-default">
<div className="panel-heading panel-heading-custom2">
<h3 className="panel-title"><center>Red Flags</center></h3>
</div>
<CKEditor
activeClass="redflags"
content={this.state.redFlagContent}
events={{
"change": this.onChangeRedFlag
}}
config= {{removeButtons: 'Outdent,Indent,Styles,Undo,Redo,Select,PasteText,PasteFromWord,HiddenField,CreateDiv,Cut,Copy,Paste,Source,Format,Maximize,Anchor,Superscript,Subscript,RemoveFormat,About,Strike,Blockquote,Table,ShowBlocks, Find, specialChars,HorizontalRule,select', height: 120,
removePlugins: 'resize,elementspath,save,image,flash,iframe,link,smiley,tabletools,find,pagebreak,templates,about,maximize,showblocks,newpage,language,scayt,wsc,select,specialchar, magicline',
autoParagraph: false
}}
/>
</div>
<div className="panel panel-default">
<div className="panel-heading panel-heading-custom4">
<h3 className="panel-title"><center>Maintenance Releases</center></h3>
</div>
<CKEditor
activeClass="maintenance"
content={this.state.maintenanceContent}
events={{
"change": this.onChangeMaintenance
}}
config= {{removeButtons: 'Outdent,Indent,Styles,Undo,Redo,Select,PasteText,PasteFromWord,HiddenField,CreateDiv,Cut,Copy,Paste,Source,Format,Maximize,Anchor,Superscript,Subscript,RemoveFormat,About,Strike,Blockquote,Table,ShowBlocks, Find, specialChars,HorizontalRule,select', height: 120,
removePlugins: 'resize,elementspath,save,image,flash,iframe,link,smiley,tabletools,find,pagebreak,templates,about,maximize,showblocks,newpage,language,scayt,wsc,select,specialchar, magicline',
autoParagraph: false
}}
/>
</div>
<div className="panel panel-default">
<div className="panel-heading panel-heading-custom5">
<h3 className="panel-title"><center>Notes</center></h3>
</div>
<CKEditor
activeClass="maintenance"
content={this.state.notesContent}
events={{
"change": this.onChangeNotes
}}
config= {{removeButtons: 'Outdent,Indent,Styles,Undo,Redo,Select,PasteText,PasteFromWord,HiddenField,CreateDiv,Cut,Copy,Paste,Source,Format,Maximize,Anchor,Superscript,Subscript,RemoveFormat,About,Strike,Blockquote,Table,ShowBlocks, Find, specialChars,HorizontalRule,select', height: 120,
removePlugins: 'resize,elementspath,save,image,flash,iframe,link,smiley,tabletools,find,pagebreak,templates,about,maximize,showblocks,newpage,language,scayt,wsc,select,specialchar, magicline',
autoParagraph: false
}}
/>
</div>