{"action":"created","issue":{"url":"https://api.github.com/repos/wangfupeng1988/wangEditor/issues/1553","repository_url":"https://api.github.com/repos/wangfupeng1988/wangEditor","labels_url":"https://api.github.com/repos/wangfupeng1988/wangEditor/issues/1553/labels{/name}","comments_url":"https://api.github.com/repos/wangfupeng1988/wangEditor/issues/1553/comments","events_url":"https://api.github.com/repos/wangfupeng1988/wangEditor/issues/1553/events","html_url":"https://github.com/wangfupeng1988/wangEditor/issues/1553","id":326951031,"node_id":"MDU6SXNzdWUzMjY5NTEwMzE=","number":1553,"title":"editor.txt.text(editor.txt.text().subString(0,1000))会截取到样式的代码","user":{"login":"liyunqaing","id":39521797,"node_id":"MDQ6VXNlcjM5NTIxNzk3","avatar_url":"https://avatars3.githubusercontent.com/u/39521797?v=4","gravatar_id":"","url":"https://api.github.com/users/liyunqaing","html_url":"https://github.com/liyunqaing","followers_url":"https://api.github.com/users/liyunqaing/followers","following_url":"https://api.github.com/users/liyunqaing/following{/other_user}","gists_url":"https://api.github.com/users/liyunqaing/gists{/gist_id}","starred_url":"https://api.github.com/users/liyunqaing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liyunqaing/subscriptions","organizations_url":"https://api.github.com/users/liyunqaing/orgs","repos_url":"https://api.github.com/users/liyunqaing/repos","events_url":"https://api.github.com/users/liyunqaing/events{/privacy}","received_events_url":"https://api.github.com/users/liyunqaing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-28T08:58:42Z","updated_at":"2018-12-21T07:20:34Z","closed_at":null,"author_association":"NONE","body":"editor.txt.text(editor.txt.text().subString(0,1000))会截取到样式的代码"},"comment":{"url":"https://api.github.com/repos/wangfupeng1988/wangEditor/issues/comments/449287925","html_url":"https://github.com/wangfupeng1988/wangEditor/issues/1553#issuecomment-449287925","issue_url":"https://api.github.com/repos/wangfupeng1988/wangEditor/issues/1553","id":449287925,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTI4NzkyNQ==","user":{"login":"HYqwf","id":12951637,"node_id":"MDQ6VXNlcjEyOTUxNjM3","avatar_url":"https://avatars1.githubusercontent.com/u/12951637?v=4","gravatar_id":"","url":"https://api.github.com/users/HYqwf","html_url":"https://github.com/HYqwf","followers_url":"https://api.github.com/users/HYqwf/followers","following_url":"https://api.github.com/users/HYqwf/following{/other_user}","gists_url":"https://api.github.com/users/HYqwf/gists{/gist_id}","starred_url":"https://api.github.com/users/HYqwf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HYqwf/subscriptions","organizations_url":"https://api.github.com/users/HYqwf/orgs","repos_url":"https://api.github.com/users/HYqwf/repos","events_url":"https://api.github.com/users/HYqwf/events{/privacy}","received_events_url":"https://api.github.com/users/HYqwf/received_events","type":"User","site_admin":false},"created_at":"2018-12-21T07:20:34Z","updated_at":"2018-12-21T07:20:34Z","author_association":"NONE","body":"> 你使用`editor.txt.text()`获取到的会有 css 的代码？\r\n\r\neditor.txt.text().subString(0,1000)这个的期望是能截取1000个字符，但是编辑器自动加入p标签后，p标签也自动算在了1000字符里。点击Backspace，获取到的又会多一些p标签、br标签等，位置出现的还特诡异\r\n![image](https://user-images.githubusercontent.com/12951637/50329879-f3025c80-0533-11e9-9bf4-1649b0041b4c.png)\r\n"}}
{"actor":{"display_login":"HYqwf"}}