{"action":"created","issue":{"url":"https://api.github.com/repos/kogmbh/WebODF/issues/551","labels_url":"https://api.github.com/repos/kogmbh/WebODF/issues/551/labels{/name}","comments_url":"https://api.github.com/repos/kogmbh/WebODF/issues/551/comments","events_url":"https://api.github.com/repos/kogmbh/WebODF/issues/551/events","html_url":"https://github.com/kogmbh/WebODF/issues/551","id":31759503,"number":551,"title":"OpApplyDirectStyling created on text replacement fails in collab mode","user":{"login":"kossebau","id":4068037,"avatar_url":"https://avatars.githubusercontent.com/u/4068037?v=3","gravatar_id":"","url":"https://api.github.com/users/kossebau","html_url":"https://github.com/kossebau","followers_url":"https://api.github.com/users/kossebau/followers","following_url":"https://api.github.com/users/kossebau/following{/other_user}","gists_url":"https://api.github.com/users/kossebau/gists{/gist_id}","starred_url":"https://api.github.com/users/kossebau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kossebau/subscriptions","organizations_url":"https://api.github.com/users/kossebau/orgs","repos_url":"https://api.github.com/users/kossebau/repos","events_url":"https://api.github.com/users/kossebau/events{/privacy}","received_events_url":"https://api.github.com/users/kossebau/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kogmbh/WebODF/labels/bug","name":"bug","color":"eb6420"},{"url":"https://api.github.com/repos/kogmbh/WebODF/labels/severe","name":"severe","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/kogmbh/WebODF/milestones/3","html_url":"https://github.com/kogmbh/WebODF/milestones/WebODF%200.x.0","labels_url":"https://api.github.com/repos/kogmbh/WebODF/milestones/3/labels","id":490429,"number":3,"title":"WebODF 0.x.0","description":"","creator":{"login":"kossebau","id":4068037,"avatar_url":"https://avatars.githubusercontent.com/u/4068037?v=3","gravatar_id":"","url":"https://api.github.com/users/kossebau","html_url":"https://github.com/kossebau","followers_url":"https://api.github.com/users/kossebau/followers","following_url":"https://api.github.com/users/kossebau/following{/other_user}","gists_url":"https://api.github.com/users/kossebau/gists{/gist_id}","starred_url":"https://api.github.com/users/kossebau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kossebau/subscriptions","organizations_url":"https://api.github.com/users/kossebau/orgs","repos_url":"https://api.github.com/users/kossebau/repos","events_url":"https://api.github.com/users/kossebau/events{/privacy}","received_events_url":"https://api.github.com/users/kossebau/received_events","type":"User","site_admin":false},"open_issues":135,"closed_issues":23,"state":"open","created_at":"2013-11-19T21:16:00Z","updated_at":"2015-05-20T14:23:50Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2014-04-17T20:29:13Z","updated_at":"2015-06-07T12:57:37Z","closed_at":null,"body":"Each time when overwriting existing text with other text also a OpApplyDirectStyling is created with the complete style properties of the first character in the selection, to ensure the current styling is kept (at least that way reasoned in #296, commit e2b7b378f152dc976836537175f18e8678a6e243).\r\n\r\nWhile this works fine in single-editor mode, because the styles are resolved to nothing when executed by odf.TextStyleApplicator in the same style environment, it is a problem in collab mode, because it is handled as a serious op, with the intention to style with all the properties, which only results in unexpected stylings, as we saw today.\r\n\r\nNo idea yet how to apporach the original problem in another, less side-effecting way."},"comment":{"url":"https://api.github.com/repos/kogmbh/WebODF/issues/comments/109749180","html_url":"https://github.com/kogmbh/WebODF/issues/551#issuecomment-109749180","issue_url":"https://api.github.com/repos/kogmbh/WebODF/issues/551","id":109749180,"user":{"login":"peitschie","id":1052079,"avatar_url":"https://avatars.githubusercontent.com/u/1052079?v=3","gravatar_id":"","url":"https://api.github.com/users/peitschie","html_url":"https://github.com/peitschie","followers_url":"https://api.github.com/users/peitschie/followers","following_url":"https://api.github.com/users/peitschie/following{/other_user}","gists_url":"https://api.github.com/users/peitschie/gists{/gist_id}","starred_url":"https://api.github.com/users/peitschie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peitschie/subscriptions","organizations_url":"https://api.github.com/users/peitschie/orgs","repos_url":"https://api.github.com/users/peitschie/repos","events_url":"https://api.github.com/users/peitschie/events{/privacy}","received_events_url":"https://api.github.com/users/peitschie/received_events","type":"User","site_admin":false},"created_at":"2015-06-07T12:57:37Z","updated_at":"2015-06-07T12:57:37Z","body":"Based on the comments on that issue, that is different possibly from this current one. This issue is about a specific edge case when working in collab mode which as far as I can tell has existed as long as we've attempted to support direct formatting in collab.\r\n\r\nAre we able to get more specific reproduction cases from them?"}}