简体   繁体   中英

How to find the text storage location of the firepad editor and how to clear the editor

我正在尝试为我的个人需求创建自定义编辑器,是否可以删除刷新页面之前由我输入的数据?

I'm not 100% sure what you're looking for, but if you just want to clear the text on page load, you can do something like:

firepad.on('ready', function() {
  firepad.setText('');
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM