Text editing

All about text formatting, links and anchors.

Working with text in Setka Editor

In Setka Editor, the text is divided into paragraphs. Rather than working with single lines of text, formatting is applied to the whole paragraph. To change several paragraphs at the same time, hold CMD or CTRL and click on desired paragraphs to select multiple. Changes made will be applied to these paragraphs.

Adding a paragraph

SHIFT+ENTER shortcut creates a new line in the same paragraph. It can be convenient when you are typing content in the Setka Editor rather than copying it from other sources. When inserting large pieces of text, the Editor will break it up into paragraphs.

Quick add

If you need to add a paragraph above or below the grid, the Quick add menu can be used. To open it, hover the mouse above the grid and click the + button. The purple line above or below the grid will demonstrate where the new paragraph would be placed:

Please learn more about working with text in Setka Editor in this short video:

Text formatting

In Setka Editor, you apply formatting and all keyboard shortcuts to the whole paragraph. However, you can also edit words and lines of text in the paragraph separately. For example, you can set words or lines as italic or bold and add anchors and links. You can see these options in the Selection tab in the Upper Toolbar as soon as you highlight a piece of text.

How to delete a line?

Select some text or an element and press backspace to delete. Right-click inside the post and select Delete paragraph or Delete grid to remove larger elements.

Switching text formats

Click inside a paragraph. You will see the Format option in the Paragraph tab. These text styles are selected in the Content Design System Manager (CDSM).

Selecting multiple paragraphs

Hold CMD or CTRL and click the desired paragraphs. You can then apply the same changes to multiple paragraphs.

If you need to select the whole content of the article, press CMD/CTRL+SHIFT+A.

You can also select elements by dragging a mouse via multiselect.

Aligning text

Click inside a paragraph. You will see text alignment options in the Paragraph tab in the Upper Toolbar: in the center, to the left or right, or by post width.

Why justified layout is not available?

As you can see, there is no justified alignment option. We've decided not to add this option for the following reasons:

1. Justified layout might create a visual mess inside text blocks

There are plenty of text alignment tools in the press: hyphenation, word spacing, wide and narrow font options, etc. Layouts with justified alignment look good only when it is made by hand by a professional typesetter. In the case of web pages, an uncontrolled increase in the width of spaces occurs.

2. Justified layouts are bad for readability

Justified text is harder to read. The eye is constantly forced to seek out the beginning of the next word and rearrange perception from row to row due to different-sized spaces.

3. Incompatibility with mobile devices

Such layout directly contradicts the requirements of mobile devices, for which the shorter the line, the better.

Adjusting indentations

Click inside the paragraph and select the bottom indentation in pixels (px) in the Paragraph tab. You can also use CMD/CTRL+↑/↓ shortcut. Indent values are divisible by the line-height parameter of the font you are using to maintain the post’s layout.

Changing internal indentations

Internal indentations are margins at the top and bottom of a paragraph. Click inside the paragraph and select inner indent in pixels (px) in the Paragraph tab of the Upper Toolbar to alter these margins.

Text color

To change the color or the text, click inside the paragraph, and select the color in the Paragraph tab in the Upper Toolbar. You set these colors in the Content Design System Manager (CDSM).

Is there a way to set different colors for individual words?

No, you can only select a color for the whole paragraph. This was a conscious decision made by our designers to ensure the readability of your posts.

Icons

Icons are scaled automatically according to the line height of the text next to which they are inserted.

pageIcons

Adding anchors

An anchor provides an internal link or bookmark to another part of your post. They can be useful when creating tables of content for longer posts.

To create an anchor, click inside the paragraph (the paragraph where the anchor link needs to lead), select the Anchor option in the Paragraph tab of the Upper Toolbar, and give the anchor a name.

To reach this anchor from another part of your post, highlight the text element to add a link to and select the Anchor name in the Selection tab of the Upper Toolbar. This will add the link to the anchor. When the content is published, you can click this text or element, and it will take you directly to the part of the post where the anchor was applied.

You can always test the anchor link in the Post preview mode (you can activate it in the Side Toolbar or by pressing the TAB key).

How to make scrolling to anchors smooth?

By default, clicking on an anchor instantly takes you to the dedicated paragraph in the text. It is possible to turn this transition into a smooth scroll. Just add this code in the Custom CSS section on your style settings.

@at-root {
      html, body { scroll-behavior: smooth; }
    }

Please note that some browsers do not support smooth scrolling.

How to add a table of contents?

If you are making a long post with multiple sections, you can add navigation for them. Add a table of contents before your article and assign an anchor for each header as described above.

Links

Highlight a word or a text fragment. In the Selection tab of the Upper Toolbar, insert the link into the Link field.

Last updated