Adjusted subtitle copy

closes https://linear.app/tryghost/issue/MOM-180
closes https://linear.app/tryghost/issue/MOM-184
This commit is contained in:
Kevin Ansfield 2024-06-04 09:21:34 +01:00
parent 41f8ed6f45
commit 9ab9a88d5b
3 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@
<div class="relative">
<GhTextarea
@class={{concat "gh-editor-subtitle " (if @excerptErrorMessage "red")}}
@placeholder="Add a subtitle..."
@placeholder="Add a subtitle"
@shouldFocus={{false}}
@tabindex="1"
@autoExpand=".gh-koenig-editor"

View File

@ -63,7 +63,7 @@ export default BaseValidator.create({
customExcerpt(model) {
if (!validator.isLength(model.customExcerpt || '', 0, 300)) {
if (model.feature.editorSubtitle) {
model.errors.add('customExcerpt', 'Please keep the subtitle under 300 characters.');
model.errors.add('customExcerpt', 'Subtitle cannot be longer than 300 characters.');
} else {
model.errors.add('customExcerpt', 'Excerpt cannot be longer than 300 characters.');
}

View File

@ -516,7 +516,7 @@ describe('Acceptance: Editor', function () {
await fillIn('[data-test-textarea="subtitle"]', Array(302).join('a'));
expect(find('[data-test-error="subtitle"]'), 'subtitle error').to.exist;
expect(find('[data-test-error="subtitle"]')).to.have.trimmed.text('Please keep the subtitle under 300 characters.');
expect(find('[data-test-error="subtitle"]')).to.have.trimmed.text('Subtitle cannot be longer than 300 characters.');
await fillIn('[data-test-textarea="subtitle"]', Array(300).join('a'));