|
|
|
@ -41,11 +41,12 @@ function md_clear_data(k,mdu,id){
|
|
|
|
|
var id1 = "#e_tip_"+id;
|
|
|
|
|
var id2 = "#e_tips_"+id;
|
|
|
|
|
if(k == 'content'){
|
|
|
|
|
$(id2).html("");
|
|
|
|
|
$(id2).html(" ");
|
|
|
|
|
}else{
|
|
|
|
|
$(id1).html("");
|
|
|
|
|
$(id1).html(" ");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
window.md_clear_data = md_clear_data
|
|
|
|
|
// editor 存在了jquery对象上,应用不需要自己写md_rec_data方法了
|
|
|
|
|
function md_rec_data(k, mdu, id) {
|
|
|
|
|
if (window.sessionStorage.getItem(k + mdu) !== null) {
|
|
|
|
@ -80,8 +81,8 @@ function md_elocalStorage(editor,mdu,id){
|
|
|
|
|
var id1 = "#e_tip_"+id;
|
|
|
|
|
var id2 = "#e_tips_"+id;
|
|
|
|
|
|
|
|
|
|
$(id1).html(" 数据已于 " + h + ':' + m + ':' + s +" 保存 ");
|
|
|
|
|
$(id2).html("");
|
|
|
|
|
$(id2).html(" 数据已于 " + h + ':' + m + ':' + s +" 保存 ");
|
|
|
|
|
// $(id2).html("");
|
|
|
|
|
}
|
|
|
|
|
},10000);
|
|
|
|
|
|
|
|
|
@ -302,8 +303,8 @@ export default class TPMMDEditor extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className={"fr rememberTip"}>
|
|
|
|
|
{noStorage == true ? ' ' : <p id={`e_tip_mdEditor_${mdID}`} className="edu-txt-right color-grey-cd font-12"></p>}
|
|
|
|
|
{noStorage == true ? ' ' : <p id={`e_tips_mdEditor_${mdID}`} className="edu-txt-right color-grey-cd font-12"></p>}
|
|
|
|
|
{noStorage == true ? ' ' : <p id={`e_tips_mdEditor_${mdID}`} className="edu-txt-right color-grey-cd font-12"> </p>}
|
|
|
|
|
{/* {noStorage == true ? ' ' : <p id={`e_tips_mdEditor_${mdID}`} className="edu-txt-right color-grey-cd font-12"> </p>} */}
|
|
|
|
|
</div>
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
)
|
|
|
|
|