Bullet Item tool not working correctly

2 posts, 0 answers
  1. Lynn
    Lynn avatar
    186 posts
    Member since:
    Sep 2006

    Posted 10 Jul 2011 Link to this post

    I recently downloaded the latest maintenance release and installed it yesterday.  I was testing some code today which contained an instance of the Editor.  I am having a strange problem when trying to create new bullet items.

    I have attached two screen captures to show what is happening.  The first screen capture was taken BEFORE clicking the Bullet Item button.  It should be noted that before the Bullet Item button was clicked, the cursor was sitting 2 carriage returns below the second paragraph.

    The HTML in the control before clicking the Bullet Item button is shown immediately below:

    <span style="font-family: arial; font-size: 12px;">
    <p><span style="font-family: arial; font-size: 12px;">When THDi Software builds a public website for your company, you will have the option of making certain "content mangement" fucntionality available for approved employees on your staff to use to maintain the text and verbiage on your website.<br />
    <br />
    There are many different categories of information for your maintenance purposes.  These tools will reduce the time you need to spend maintaining your website and will reduce your total charges for our labor.  Of course, if you want, we can maintain this information for you.<br />
    <br />
    </span></p>
    </span>
    <p> </p>


    What I wanted to accomplish was to create a new bullet item UNDER the second paragraph.

    The second screen capture shows what the Editor did when I clicked on the Bullet Item button.  Please understand, the cursor really was positioned two (2) carriage returns BELOW THE SECOND PARAGRAPH.

    The created HTML after the action is immediately below:
    <span style="font-family: arial; font-size: 12px;">
    <p> </p>
    </span>
    <p> </p>
    <ul>
        <li><span style="font-family: arial; font-size: 12px;">When THDi Software builds a public website for your company, you will have the option of making certain "content mangement" fucntionality available for approved employees on your staff to use to maintain the text and verbiage on your website.<br />
        <br />
        There are many different categories of information for your maintenance purposes.  These tools will reduce the time you need to spend maintaining your website and will reduce your total charges for our labor.  Of course, if you want, we can maintain this information for you.<br />
        <br />
        </span></li>
    </ul>


    Is there a problem with the Editor?  Why, with all of the carriage returns included in the text, did it go back to the first paragraph and create a bullet item?

    Lynn
  2. Rumen
    Admin
    Rumen avatar
    14031 posts

    Posted 11 Jul 2011 Link to this post

    Hi Lynn,

    Actually both parts of the text are placed in a single paragraph, e.g.

    <p><span style="font-family: arial; font-size: 12px;">When THDi Software builds a public website for your company, you will have the option of making certain "content mangement" fucntionality available for approved employees on your staff to use to maintain the text and verbiage on your website.<br />
    <br />
    There are many different categories of information for your maintenance purposes.  These tools will reduce the time you need to spend maintaining your website and will reduce your total charges for our labor.  Of course, if you want, we can maintain this information for you.<br />
    <br />
    </span></p>

    and when you place the cursor two lines below the second part the selection is still placed in the same paragraph. The InsertOrderedList and InsertUnorderedList commands check whether a paragraph is selected and if it is replace the paragraph tags with OL / UL tags. You can see my test in the following video: http://screencast.com/t/XqmhmyQ0He

    All the best,
    Rumen
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top