html - <ul> inside <ol> in editor

I want to add <ol><li>First list<li><li>Second List <ul><li>Sub Second List<li&

I want to add

<ol>
   <li>First list</li>
   <li>Second List 
      <ul>
          <li>Sub Second List</li>
      </ul>
   </li>
   <li>Third List </li>
</ol>

This is not possible with editor without manual job. How can we achieve this

I want to add

<ol>
   <li>First list</li>
   <li>Second List 
      <ul>
          <li>Sub Second List</li>
      </ul>
   </li>
   <li>Third List </li>
</ol>

This is not possible with editor without manual job. How can we achieve this

Share Improve this question asked May 30, 2013 at 14:58 Mikul GohilMikul Gohil 1293 silver badges7 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 3

This is entirely possible, as I just tested it in WordPress.

  1. Create your unordered list
  2. Add four items: "First list," "Second list," "Sub Second List," "Third List"
  3. Place the cursor on "Sub Second List" and click Indent (you will need to expand the kitchen sink to access the indent button
  4. With the cursor still on "Sub Second List," click Unordered List

Following the steps above will produce the following markup:

<ol>
    <li>First List</li>
    <li>Second List
        <ul>
            <li>Sub Second List</li>
        </ul>
    </li>
    <li>Third List</li>
</ol>

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745455089a4628449.html

相关推荐

  • html - &lt;ul&gt; inside &lt;ol&gt; in editor

    I want to add <ol><li>First list<li><li>Second List <ul><li>Sub Second List<li&

    10小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信