主题: 编辑器想添加一个在写入新内容前的验证,怎么添加。
作者: 373850426, 发布日期: 2014-12-26 10:28:06, 浏览数: 1251

其实功能就是afterChange的翻本,不过要是beforeChange:function(val){}

,因为改变后做验证有很多不确定因数,所以想在改变前验证,同时val为要改变的内容

例如:

    开始内容为aaa,在输入b或者插入任何其他信息前触发beforeChange,val就是b或者其他插入的信息

作者: 373850426, 发布日期: 2014-12-26 16:34:07
怎么没人回复呢?
回复
作者: 373850426, 发布日期: 2014-12-26 17:55:26

没有人有这种需求?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              

                 

                     

                                   

                                         

                                            

                           

                                

                           

                     

                         


回复
发表新帖 发表回复