Using the Quick Tag Editor
The Quick Tag Editor is a small window that you can open in Edit mode to insert HTML code at the current location, edit the HTML code of the selected element, or “wrap” an HTML tag around the selected content. The Quick Tag editor provides a convenient alternative to switching to HTML mode when you just need to enter or edit a small amount of HTML at or around the insertion point.
To open the Quick Tag Editor, do one of the following:
- Press Ctrl+Q.
- Right-click a tag on the Tag Selector and click Edit Tag.
Using the Quick Tag Editor to insert HTML
When you press Ctrl+Q while no content is selected, the Quick Tag Editor opens in Insert HTML mode. In this mode, whatever you type into the edit box will be inserted into the HTML source of the document at the current location. For example, you might use this mode to quickly insert a <span> element in the middle of a paragraph.
Using the Quick Tag Editor to edit an existing tag
If you select an entire element before pressing Ctrl+Q, or right-click a tag on the Tag Selector and click Edit Tag, the Quick Tag Editor will open in Edit HTML mode. In this mode, the edit box displays the opening tag of the selected element, and you can add or edit attributes of the tag. For example, you could select a table cell, press Ctrl+Q, and add a style attribute to the <td> tag.
Note that you cannot change an element to another element type with the Quick Tag Editor. For example, you cannot change a <td> to a <th>.
Using the Quick Tag Editor to wrap a tag around selected content
You can select some content and then use the Quick Tag Editor to “wrap” an HTML tag around that content. After pressing Ctrl+Q, click the mode selection menu to the left of the edit box (or press Alt+E) and select Wrap HTML. In this mode, whatever HTML tag you enter will be placed around the selected content. For example, if the selection is “some text” and you enter <span id=”aaa”> in the Quick Tag Editor, the result will be:
<span id=”aaa”>some text</span>
You only need to enter the opening tag. Namo WebEditor will automatically supply the correct closing tag when you close the Quick Tag Editor.
Note that you cannot use the Quick Tag Editor to wrap a tag around content that spans more than one element. For example, if you select parts of two adjacent paragraphs, the Quick Tag Editor will not allow you to wrap a tag around the selection.