1

在 etherpad 数据库中,我看到每个 pad 都有这样的结构

{"atext":{"text":"\n*aaa\n*bbb\n*ccc\n*ddd\n\n","attribs":"*4|1+1*4*1*2 *3+1*4|1+4*4*1*2*3+1*4|1+4*4*1*2*3+1*4|1+4*4*1*2*3 +1*4+3|2+2"},"pool":{"numToAttrib":{"0":["author","a.bdUV2ZBYrjvQXE0D"],"1":["edanz","div "],"2":["insertorder","first"],"3":["lmkr","1"],"4":["author","a.Bjh7YjuSzfu8Y8C4"]},"nextNum ":5},"head":39,"chatHead":-1,"publicStatus":false,"passwordHash":null,"savedRevisions":[]}

任何人都可以解释上面的属性字符串吗?

*4|1+1*4*1*2*3+1*4|1+4*4*1*2*3+1*4|1+4*4*1*2*3+1*4|1+4*4*1*2*3+1*4+3|2+2

我觉得attribs和numToAttrib是有关系的,但是不知道是什么,看源码找

4

1 回答 1

0

Etherpad 变更集库文档应该会有所帮助

于 2014-03-24T06:25:26.873 回答