Skip to content

Commit 10e5a90

Browse files
authored
Merge pull request #887 from BBaoVanC/postbox-textarea
js, templates: Replace `contenteditable` `div` with `textarea`
2 parents b2a1c61 + e7cb904 commit 10e5a90

14 files changed

Lines changed: 32 additions & 81 deletions

File tree

CHANGES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ Changelog for Isso
3232
affect the client
3333
- Remove ``/count`` GET endpoint (use POST instead)
3434

35+
- Replace ``contenteditable`` ``div`` with ``textarea`` to fix issues when
36+
editing messages that contain indented code
37+
3538
.. _Gravatar: Image requests: http://en.gravatar.com/site/implement/images/
3639
.. _879: https://github.com/posativ/isso/pull/879
3740
.. _488: https://github.com/posativ/isso/pull/488

isso/css/isso.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@
2424
vertical-align: bottom;
2525
}
2626
#isso-thread .isso-textarea {
27-
min-height: 58px;
2827
outline: 0;
29-
}
30-
#isso-thread .isso-textarea.isso-placeholder {
31-
color: #757575;
28+
width: 100%;
29+
resize: none;
3230
}
3331

3432
#isso-root .isso-comment {

isso/js/app/isso.js

Lines changed: 19 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,6 @@ var globals = require("app/globals");
1111

1212
"use strict";
1313

14-
var editorify = function(el) {
15-
el = $.htmlify(el);
16-
el.setAttribute("contentEditable", true);
17-
18-
el.on("focus", function() {
19-
if (el.classList.contains("isso-placeholder")) {
20-
el.innerHTML = "";
21-
el.classList.remove("isso-placeholder");
22-
}
23-
});
24-
25-
el.on("blur", function() {
26-
if (el.textContent.length === 0) {
27-
el.textContent = i18n.translate("postbox-text");
28-
el.classList.add("isso-placeholder");
29-
}
30-
});
31-
32-
return el;
33-
}
34-
3514
var Postbox = function(parent) {
3615

3716
var localStorage = utils.localStorageImpl,
@@ -46,9 +25,7 @@ var Postbox = function(parent) {
4625
el.onsuccess = function() {};
4726

4827
el.validate = function() {
49-
if (utils.text($(".isso-textarea", this).innerHTML).length < 3 ||
50-
$(".isso-textarea", this).classList.contains("isso-placeholder"))
51-
{
28+
if ($(".isso-textarea", this).value.length < 3) {
5229
$(".isso-textarea", this).focus();
5330
return false;
5431
}
@@ -92,7 +69,7 @@ var Postbox = function(parent) {
9269

9370
// preview function
9471
$("[name='preview']", el).on("click", function() {
95-
api.preview(utils.text($(".isso-textarea", el).innerHTML)).then(
72+
api.preview($(".isso-textarea", el).value).then(
9673
function(html) {
9774
$(".isso-preview .isso-text", el).innerHTML = html;
9875
el.classList.add('isso-preview-mode');
@@ -104,8 +81,14 @@ var Postbox = function(parent) {
10481
$(".isso-preview .isso-text", el).innerHTML = '';
10582
el.classList.remove('isso-preview-mode');
10683
};
107-
$("[name='edit']", el).on("click", edit);
108-
$(".isso-preview", el).on("click", edit);
84+
$("[name='edit']", el).on("click", function() {
85+
edit();
86+
$(".isso-textarea", el).focus();
87+
});
88+
$(".isso-preview", el).on("click", function() {
89+
edit();
90+
$(".isso-textarea", el).focus();
91+
});
10992

11093
// submit form, initialize optional fields with `null` and reset form.
11194
// If replied to a comment, remove form completely.
@@ -125,13 +108,12 @@ var Postbox = function(parent) {
125108

126109
api.create($("#isso-thread").getAttribute("data-isso-id"), {
127110
author: author, email: email, website: website,
128-
text: utils.text($(".isso-textarea", el).innerHTML),
111+
text: $(".isso-textarea", el).value,
129112
parent: parent || null,
130113
title: $("#isso-thread").getAttribute("data-title") || null,
131114
notification: $("[name=notification]", el).checked() ? 1 : 0,
132115
}).then(function(comment) {
133-
$(".isso-textarea", el).innerHTML = "";
134-
$(".isso-textarea", el).blur();
116+
$(".isso-textarea", el).value = "";
135117
insert(comment, true);
136118

137119
if (parent !== null) {
@@ -140,8 +122,6 @@ var Postbox = function(parent) {
140122
});
141123
});
142124

143-
editorify($(".isso-textarea", el));
144-
145125
return el;
146126
};
147127

@@ -296,9 +276,12 @@ var insert = function(comment, scrollIntoView) {
296276

297277
toggler.canceled = false;
298278
api.view(comment.id, 1).then(function(rv) {
299-
var textarea = editorify($.new("div.isso-textarea"));
279+
var textarea = $.new("textarea.isso-textarea");
280+
textarea.setAttribute("rows", 5);
281+
textarea.setAttribute("minlength", 3);
282+
textarea.setAttribute("maxlength", 65535);
300283

301-
textarea.innerHTML = utils.detext(rv.text);
284+
textarea.value = rv.text;
302285
textarea.focus();
303286

304287
text.classList.remove("isso-text");
@@ -317,12 +300,12 @@ var insert = function(comment, scrollIntoView) {
317300
var avatar = config["avatar"] || config["gravatar"] ? $(".isso-avatar", el, false)[0] : null;
318301

319302
if (! toggler.canceled && textarea !== null) {
320-
if (utils.text(textarea.innerHTML).length < 3) {
303+
if (textarea.value.length < 3) {
321304
textarea.focus();
322305
toggler.wait();
323306
return;
324307
} else {
325-
api.modify(comment.id, {"text": utils.text(textarea.innerHTML)}).then(function(rv) {
308+
api.modify(comment.id, {"text": textarea.value}).then(function(rv) {
326309
text.innerHTML = rv.text;
327310
comment.text = rv.text;
328311
});
@@ -416,7 +399,6 @@ var insert = function(comment, scrollIntoView) {
416399
};
417400

418401
module.exports = {
419-
editorify: editorify,
420402
insert: insert,
421403
insert_loader: insert_loader,
422404
Postbox: Postbox,

isso/js/app/templates/postbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var html = function (globals) {
1010
"<div class='isso-postbox'>"
1111
+ "<div class='isso-form-wrapper'>"
1212
+ "<div class='isso-textarea-wrapper'>"
13-
+ "<div class='isso-textarea isso-placeholder' contenteditable='true'>" + i18n('postbox-text') + "</div>"
13+
+ "<textarea class='isso-textarea' rows='5' minlength='3' maxlength='65535' placeholder='" + i18n('postbox-text') + "'></textarea>"
1414
+ "<div class='isso-preview'>"
1515
+ "<div class='isso-comment'>"
1616
+ "<div class='isso-text-wrapper'>"

isso/js/app/utils.js

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,6 @@ var pad = function(n, width, z) {
1111
return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n;
1212
};
1313

14-
var HTMLEntity = {
15-
"&": "&amp;",
16-
"<": "&lt;",
17-
">": "&gt;",
18-
'"': '&quot;',
19-
"'": '&#39;',
20-
"/": '&#x2F;'
21-
};
22-
23-
var escape = function(html) {
24-
return String(html).replace(/[&<>"'\/]/g, function (s) {
25-
return HTMLEntity[s];
26-
});
27-
};
28-
29-
var text = function(html) {
30-
var _ = document.createElement("div");
31-
_.innerHTML = html.replace(/<div><br><\/div>/gi, '<br>')
32-
.replace(/<div>/gi,'<br>')
33-
.replace(/<br>/gi, '\n')
34-
.replace(/&nbsp;/gi, ' ');
35-
return _.textContent.trim();
36-
};
37-
38-
var detext = function(text) {
39-
text = escape(text);
40-
return text.replace(/\n\n/gi, '<br><div><br></div>')
41-
.replace(/\n/gi, '<br>');
42-
};
43-
4414
// Normalize a BCP47 language tag.
4515
// Quoting https://tools.ietf.org/html/bcp47 :
4616
// An implementation can reproduce this format without accessing
@@ -94,9 +64,7 @@ try {
9464

9565
module.exports = {
9666
cookie: cookie,
97-
detext: detext,
9867
localStorageImpl: localStorageImpl,
9968
normalize_bcp47: normalize_bcp47,
10069
pad: pad,
101-
text: text,
10270
};

isso/js/tests/integration/__snapshots__/puppet.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`should fill Postbox with valid data and receive 201 reply 1`] = `
4-
"<noscript>Javascript needs to be activated to view comments.</noscript><h4>No Comments Yet</h4><div class=\\"isso-postbox\\"><div class=\\"isso-form-wrapper\\"><div class=\\"isso-textarea-wrapper\\"><div class=\\"isso-textarea\\" contenteditable=\\"true\\"></div><div class=\\"isso-preview\\"><div class=\\"isso-comment\\"><div class=\\"isso-text-wrapper\\"><div class=\\"isso-text\\"></div></div></div></div></div><section class=\\"isso-auth-section\\"><p class=\\"isso-input-wrapper\\"><label for=\\"isso-postbox-author\\">Name (optional)</label><input id=\\"isso-postbox-author\\" type=\\"text\\" name=\\"author\\" placeholder=\\"John Doe\\" value=\\"\\"></p><p class=\\"isso-input-wrapper\\"><label for=\\"isso-postbox-email\\">E-mail (optional)</label><input id=\\"isso-postbox-email\\" type=\\"email\\" name=\\"email\\" placeholder=\\"johndoe@example.com\\" value=\\"\\"></p><p class=\\"isso-input-wrapper\\"><label for=\\"isso-postbox-website\\">Website (optional)</label><input id=\\"isso-postbox-website\\" type=\\"text\\" name=\\"website\\" placeholder=\\"https://example.com\\" value=\\"\\"></p><p class=\\"isso-post-action\\"><input type=\\"submit\\" value=\\"Submit\\"></p><p class=\\"isso-post-action\\"><input type=\\"button\\" name=\\"preview\\" value=\\"Preview\\"></p><p class=\\"isso-post-action\\"><input type=\\"button\\" name=\\"edit\\" value=\\"Edit\\"></p></section><section class=\\"isso-notification-section\\" style=\\"display: none;\\"><label><input type=\\"checkbox\\" name=\\"notification\\">Subscribe to email notification of replies</label></section></div></div><div id=\\"isso-root\\"><div class=\\"isso-comment isso-no-votes\\" id=\\"isso-1\\" data-hash=\\"34f4b563ece1\\"><div class=\\"isso-avatar\\"><svg version=\\"1.1\\" viewBox=\\"0 0 48 48\\" preserveAspectRatio=\\"xMinYMin meet\\" shape-rendering=\\"crispEdges\\" data-hash=\\"34f4b563ece1\\"><rect x=\\"0\\" y=\\"0\\" width=\\"56\\" height=\\"56\\" style=\\"fill: #f0f0f0\\"></rect><rect x=\\"4\\" y=\\"4\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"36\\" y=\\"4\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"4\\" y=\\"12\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"36\\" y=\\"12\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"4\\" y=\\"20\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"36\\" y=\\"20\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"4\\" y=\\"28\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"36\\" y=\\"28\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"4\\" y=\\"36\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"36\\" y=\\"36\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"12\\" y=\\"12\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"28\\" y=\\"12\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"12\\" y=\\"20\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"28\\" y=\\"20\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"20\\" y=\\"4\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"20\\" y=\\"12\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"20\\" y=\\"20\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect></svg></div><div class=\\"isso-text-wrapper\\"><div class=\\"isso-comment-header\\" role=\\"meta\\"><span class=\\"isso-author\\">Commenter #1</span><span class=\\"isso-spacer\\">•</span><a class=\\"isso-permalink\\" href=\\"#isso-1\\"><time>right now</time></a><span class=\\"isso-note\\"></span></div><div class=\\"isso-text\\"><p>A comment with <em>italics</em> and <a href=\\"http://link.com\\" rel=\\"nofollow noopener\\">a link</a></p></div><div class=\\"isso-comment-footer\\"><span class=\\"isso-votes\\">0</span><a class=\\"isso-upvote\\" href=\\"#\\"><!-- Generator: IcoMoon.io --><svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 32 32\\" xmlns=\\"http://www.w3.org/2000/svg\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" fill=\\"gray\\">
4+
"<noscript>Javascript needs to be activated to view comments.</noscript><h4>No Comments Yet</h4><div class=\\"isso-postbox\\"><div class=\\"isso-form-wrapper\\"><div class=\\"isso-textarea-wrapper\\"><textarea class=\\"isso-textarea\\" rows=\\"5\\" minlength=\\"3\\" maxlength=\\"65535\\" placeholder=\\"Type Comment Here (at least 3 chars)\\"></textarea><div class=\\"isso-preview\\"><div class=\\"isso-comment\\"><div class=\\"isso-text-wrapper\\"><div class=\\"isso-text\\"></div></div></div></div></div><section class=\\"isso-auth-section\\"><p class=\\"isso-input-wrapper\\"><label for=\\"isso-postbox-author\\">Name (optional)</label><input id=\\"isso-postbox-author\\" type=\\"text\\" name=\\"author\\" placeholder=\\"John Doe\\" value=\\"\\"></p><p class=\\"isso-input-wrapper\\"><label for=\\"isso-postbox-email\\">E-mail (optional)</label><input id=\\"isso-postbox-email\\" type=\\"email\\" name=\\"email\\" placeholder=\\"johndoe@example.com\\" value=\\"\\"></p><p class=\\"isso-input-wrapper\\"><label for=\\"isso-postbox-website\\">Website (optional)</label><input id=\\"isso-postbox-website\\" type=\\"text\\" name=\\"website\\" placeholder=\\"https://example.com\\" value=\\"\\"></p><p class=\\"isso-post-action\\"><input type=\\"submit\\" value=\\"Submit\\"></p><p class=\\"isso-post-action\\"><input type=\\"button\\" name=\\"preview\\" value=\\"Preview\\"></p><p class=\\"isso-post-action\\"><input type=\\"button\\" name=\\"edit\\" value=\\"Edit\\"></p></section><section class=\\"isso-notification-section\\" style=\\"display: none;\\"><label><input type=\\"checkbox\\" name=\\"notification\\">Subscribe to email notification of replies</label></section></div></div><div id=\\"isso-root\\"><div class=\\"isso-comment isso-no-votes\\" id=\\"isso-1\\" data-hash=\\"34f4b563ece1\\"><div class=\\"isso-avatar\\"><svg version=\\"1.1\\" viewBox=\\"0 0 48 48\\" preserveAspectRatio=\\"xMinYMin meet\\" shape-rendering=\\"crispEdges\\" data-hash=\\"34f4b563ece1\\"><rect x=\\"0\\" y=\\"0\\" width=\\"56\\" height=\\"56\\" style=\\"fill: #f0f0f0\\"></rect><rect x=\\"4\\" y=\\"4\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"36\\" y=\\"4\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"4\\" y=\\"12\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"36\\" y=\\"12\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"4\\" y=\\"20\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"36\\" y=\\"20\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"4\\" y=\\"28\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"36\\" y=\\"28\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"4\\" y=\\"36\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"36\\" y=\\"36\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"12\\" y=\\"12\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"28\\" y=\\"12\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"12\\" y=\\"20\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"28\\" y=\\"20\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"20\\" y=\\"4\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"20\\" y=\\"12\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect><rect x=\\"20\\" y=\\"20\\" width=\\"8\\" height=\\"8\\" style=\\"fill: #5698c4\\"></rect></svg></div><div class=\\"isso-text-wrapper\\"><div class=\\"isso-comment-header\\" role=\\"meta\\"><span class=\\"isso-author\\">Commenter #1</span><span class=\\"isso-spacer\\">•</span><a class=\\"isso-permalink\\" href=\\"#isso-1\\"><time>right now</time></a><span class=\\"isso-note\\"></span></div><div class=\\"isso-text\\"><p>A comment with <em>italics</em> and <a href=\\"http://link.com\\" rel=\\"nofollow noopener\\">a link</a></p></div><div class=\\"isso-comment-footer\\"><span class=\\"isso-votes\\">0</span><a class=\\"isso-upvote\\" href=\\"#\\"><!-- Generator: IcoMoon.io --><svg width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 32 32\\" xmlns=\\"http://www.w3.org/2000/svg\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" fill=\\"gray\\">
55
<g>
66
<path d=\\"M 24.773,18.299c-0.651-0.669-7.512-7.203-7.512-7.203C 16.912,10.739, 16.456,10.56, 16,10.56c-0.458,0-0.914,0.179-1.261,0.536 c0,0-6.861,6.534-7.514,7.203c-0.651,0.669-0.696,1.872,0,2.586c 0.698,0.712, 1.669,0.77, 2.522,0L 16,14.89l 6.251,5.995 c 0.854,0.77, 1.827,0.712, 2.522,0C 25.47,20.17, 25.427,18.966, 24.773,18.299z\\">
77
</path>
@@ -16,4 +16,4 @@ exports[`should fill Postbox with valid data and receive 201 reply 1`] = `
1616
</a><a class=\\"isso-edit\\" href=\\"#\\">Edit</a><a class=\\"isso-delete\\" href=\\"#\\">Delete</a></div></div><div class=\\"isso-follow-up\\"></div></div></div>"
1717
`;
1818
19-
exports[`should match blank widget to snapshot 1`] = `"<noscript>Javascript needs to be activated to view comments.</noscript><h4>No Comments Yet</h4><div class=\\"isso-postbox\\"><div class=\\"isso-form-wrapper\\"><div class=\\"isso-textarea-wrapper\\"><div class=\\"isso-textarea isso-placeholder\\" contenteditable=\\"true\\">Type Comment Here (at least 3 chars)</div><div class=\\"isso-preview\\"><div class=\\"isso-comment\\"><div class=\\"isso-text-wrapper\\"><div class=\\"isso-text\\"></div></div></div></div></div><section class=\\"isso-auth-section\\"><p class=\\"isso-input-wrapper\\"><label for=\\"isso-postbox-author\\">Name (optional)</label><input id=\\"isso-postbox-author\\" type=\\"text\\" name=\\"author\\" placeholder=\\"John Doe\\" value=\\"\\"></p><p class=\\"isso-input-wrapper\\"><label for=\\"isso-postbox-email\\">E-mail (optional)</label><input id=\\"isso-postbox-email\\" type=\\"email\\" name=\\"email\\" placeholder=\\"johndoe@example.com\\" value=\\"\\"></p><p class=\\"isso-input-wrapper\\"><label for=\\"isso-postbox-website\\">Website (optional)</label><input id=\\"isso-postbox-website\\" type=\\"text\\" name=\\"website\\" placeholder=\\"https://example.com\\" value=\\"\\"></p><p class=\\"isso-post-action\\"><input type=\\"submit\\" value=\\"Submit\\"></p><p class=\\"isso-post-action\\"><input type=\\"button\\" name=\\"preview\\" value=\\"Preview\\"></p><p class=\\"isso-post-action\\"><input type=\\"button\\" name=\\"edit\\" value=\\"Edit\\"></p></section><section class=\\"isso-notification-section\\" style=\\"display: none;\\"><label><input type=\\"checkbox\\" name=\\"notification\\">Subscribe to email notification of replies</label></section></div></div><div id=\\"isso-root\\"></div>"`;
19+
exports[`should match blank widget to snapshot 1`] = `"<noscript>Javascript needs to be activated to view comments.</noscript><h4>No Comments Yet</h4><div class=\\"isso-postbox\\"><div class=\\"isso-form-wrapper\\"><div class=\\"isso-textarea-wrapper\\"><textarea class=\\"isso-textarea\\" rows=\\"5\\" minlength=\\"3\\" maxlength=\\"65535\\" placeholder=\\"Type Comment Here (at least 3 chars)\\"></textarea><div class=\\"isso-preview\\"><div class=\\"isso-comment\\"><div class=\\"isso-text-wrapper\\"><div class=\\"isso-text\\"></div></div></div></div></div><section class=\\"isso-auth-section\\"><p class=\\"isso-input-wrapper\\"><label for=\\"isso-postbox-author\\">Name (optional)</label><input id=\\"isso-postbox-author\\" type=\\"text\\" name=\\"author\\" placeholder=\\"John Doe\\" value=\\"\\"></p><p class=\\"isso-input-wrapper\\"><label for=\\"isso-postbox-email\\">E-mail (optional)</label><input id=\\"isso-postbox-email\\" type=\\"email\\" name=\\"email\\" placeholder=\\"johndoe@example.com\\" value=\\"\\"></p><p class=\\"isso-input-wrapper\\"><label for=\\"isso-postbox-website\\">Website (optional)</label><input id=\\"isso-postbox-website\\" type=\\"text\\" name=\\"website\\" placeholder=\\"https://example.com\\" value=\\"\\"></p><p class=\\"isso-post-action\\"><input type=\\"submit\\" value=\\"Submit\\"></p><p class=\\"isso-post-action\\"><input type=\\"button\\" name=\\"preview\\" value=\\"Preview\\"></p><p class=\\"isso-post-action\\"><input type=\\"button\\" name=\\"edit\\" value=\\"Edit\\"></p></section><section class=\\"isso-notification-section\\" style=\\"display: none;\\"><label><input type=\\"checkbox\\" name=\\"notification\\">Subscribe to email notification of replies</label></section></div></div><div id=\\"isso-root\\"></div>"`;
52 Bytes
Loading
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
78fef44d89f68a880570a6d779c8c16e52f79094aa6738617498e1f047f53924
1+
eb62797f34336468e71ffc1b730e3a7a275f7dd5d7a00b48b988bd64b51000ee
531 Bytes
Loading
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
73bef08a7cb51eb5b5e0fde0e53ff867c6259d0ac5d68bd1a8d59325707df79b
1+
ad69338c387ca4aff6a5f0a6288af23dfeae2bb12964b6a6827fa043ac0afaad

0 commit comments

Comments
 (0)