We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 001de34 commit bd69cc6Copy full SHA for bd69cc6
1 file changed
Github_Reply_Comments/Github_Reply_Comments.user.js
@@ -146,6 +146,20 @@
146
bubbles: true,
147
cancelable: false
148
}));
149
+
150
+ // This will render GitHub Writer - https://github.com/ckeditor/github-writer
151
+ // https://github.com/ckeditor/github-writer/blob/8dbc12cb01b7903d0d6c90202078214a8637de6d/src/app/plugins/quoteselection.js#L116-L127
152
+ const githubWriter = newComment.closest([
153
+ 'form.js-new-comment-form[data-github-writer-id]',
154
+ 'form.js-inline-comment-form[data-github-writer-id]'
155
+ ].join());
156
+ if (githubWriter) {
157
+ window.postMessage({
158
+ type: 'GitHub-Writer-Quote-Selection',
159
+ id: Number(githubWriter.getAttribute('data-github-writer-id')),
160
+ text: text
161
+ }, '*');
162
+ }
163
});
164
165
var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
0 commit comments