Skip to content

Commit 95b09f4

Browse files
committed
1 parent 6c78474 commit 95b09f4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

modules/ROOT/examples/live-demos/comments-callback-with-mentions/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ <h2>Welcome to Tiny Comments!</h2>
77
<li>Type your comment into the text field at the bottom of the Comment sidebar, and use <code>@</code> followed by a name to mention a collaborator.</li>
88
<li>Click <strong>Comment</strong>.</li>
99
</ol>
10-
<p>Your comment is <span class="mce-annotation tox-comment" data-mce-annotation-uid="mce-conversation_420304606321716900864126" data-mce-annotation="tinycomments">then</span> attached to the text, <span class="mce-annotation tox-comment" data-mce-annotation-uid="mce-conversation_19679600221621399703915" data-mce-annotation="tinycomments">exactly like this!</span> You can <span class="mymention" style="color: #1b1; background-color: #eee;" data-mention-id="jennynichols" data-mce-mentions-id="jennynichols">@Jenny Nichols</span> directly in your comments to notify them.</p>
10+
<p>Your comment is <span class="mce-annotation tox-comment" data-mce-annotation-uid="mce-conversation_420304606321716900864126" data-mce-annotation="tinycomments">then</span> attached to the text, <span class="mce-annotation tox-comment" data-mce-annotation-uid="mce-conversation_19679600221621399703915" data-mce-annotation="tinycomments">exactly like this!</span> You can <span class="mymention" style="color: #37F;" data-mention-id="jennynichols" data-mce-mentions-id="jennynichols">@Jenny Nichols</span> directly in your comments to notify them.</p>
1111
<p>If you want to take Tiny Comments for a test drive in your own environment, Tiny Comments is one of the premium plugins you can try for free for 14 days by signing up for a Tiny account. Make sure to check out our documentation as well.</p>
1212
<h2>A simple table to play with</h2>
1313
<table style="border-collapse: collapse; width: 100%;" border="1">

modules/ROOT/examples/live-demos/comments-callback-with-mentions/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ import ('https://cdn.jsdelivr.net/npm/@faker-js/faker@9/dist/index.min.js').then
146146
const mentions_menu_complete = (editor, userInfo) => {
147147
const span = editor.getDoc().createElement('span');
148148
span.className = 'mymention';
149-
span.setAttribute('style', 'color: #1b1; background-color: #eee;');
149+
span.setAttribute('style', 'color: #37F;');
150150
span.setAttribute('data-mention-id', userInfo.id);
151151
span.appendChild(editor.getDoc().createTextNode('@' + userInfo.name));
152152
return span;

modules/ROOT/examples/live-demos/comments-embedded-with-mentions/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ <h2>Welcome to Tiny Comments!</h2>
88
<li>Type your comment into the text field at the bottom of the Comment sidebar, and use <code>@</code> followed by a name to mention a collaborator.</li>
99
<li>Click <strong>Comment</strong>.</li>
1010
</ol>
11-
<p>Your comment is <span class="mce-annotation tox-comment" data-mce-annotation-uid="mce-conversation_420304606321716900864126" data-mce-annotation="tinycomments">then</span> attached to the text, <span class="mce-annotation tox-comment" data-mce-annotation-uid="mce-conversation_19679600221621399703915" data-mce-annotation="tinycomments">exactly like this!</span> You can <span class="mymention" style="color: #1b1; background-color: #eee;" data-mention-id="jennynichols" data-mce-mentions-id="jennynichols">@Jenny Nichols</span> directly in your comments to notify them.</p>
11+
<p>Your comment is <span class="mce-annotation tox-comment" data-mce-annotation-uid="mce-conversation_420304606321716900864126" data-mce-annotation="tinycomments">then</span> attached to the text, <span class="mce-annotation tox-comment" data-mce-annotation-uid="mce-conversation_19679600221621399703915" data-mce-annotation="tinycomments">exactly like this!</span> You can <span class="mymention" style="color: #37F;" data-mention-id="jennynichols" data-mce-mentions-id="jennynichols">@Jenny Nichols</span> directly in your comments to notify them.</p>
1212
<p>If you want to take Tiny Comments for a test drive in your own environment, Tiny Comments is one of the premium plugins you can try for free for 14 days by signing up for a Tiny account. Make sure to check out our documentation as well.</p>
1313
<h2>A simple table to play with</h2>
1414
<table style="border-collapse: collapse; width: 100%;" border="1">

modules/ROOT/examples/live-demos/comments-embedded-with-mentions/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ import ('https://cdn.jsdelivr.net/npm/@faker-js/faker@9/dist/index.min.js').then
106106
const mentions_menu_complete = (editor, userInfo) => {
107107
const span = editor.getDoc().createElement('span');
108108
span.className = 'mymention';
109-
span.setAttribute('style', 'color: #1b1; background-color: #eee;');
109+
span.setAttribute('style', 'color: #37F;');
110110
span.setAttribute('data-mention-id', userInfo.id);
111111
span.appendChild(editor.getDoc().createTextNode('@' + userInfo.name));
112112
return span;

0 commit comments

Comments
 (0)