Loading ...
Sorry, an error occurred while loading the content.

Change the paragraph style with out selecting text

Expand Messages
  • msaspence
    Is it possible to change the behavior of the yui text editor so that when you make markup changes (via the toolbar bar buttons), for example changing from a
    Message 1 of 5 , Jul 29, 2009
    • 0 Attachment
      Is it possible to change the behavior of the yui text editor so that when you make markup changes (via the toolbar bar buttons), for example changing from a paragraph to say a heading or to a list, and you dont have any text selected it assumes you mean the current block that the cursor is in
    • Dav Glass
      Try setting the insert config option: http://developer.yahoo.com/yui/docs/YAHOO.widget.SimpleEditor.html#config_insert Dav ... -- Dav Glass davglass@gmail.com
      Message 2 of 5 , Jul 29, 2009
      • 0 Attachment
        Try setting the insert config option:
        http://developer.yahoo.com/yui/docs/YAHOO.widget.SimpleEditor.html#config_insert

        Dav

        On Wed, 29 Jul 2009, msaspence wrote:

        > Is it possible to change the behavior of the yui text editor so that when you make markup changes (via the toolbar bar buttons), for example changing from a paragraph to say a heading or to a list, and you dont have any text selected it assumes you mean the current block that the cursor is in
        >

        --
        Dav Glass
        davglass@...
        blog.davglass.com


        + Windows: n. - The most successful computer virus, ever. +
        + A computer without a Microsoft operating system is like a dog
        without bricks tied to its head +
        + A Microsoft Certified Systems Engineer is to computing what a
        McDonalds Certified Food Specialist is to fine cuisine +
      • msaspence
        This isn t quite what I meant setting insert to true allows you to choose heading from the paragraph style drop down, but inserts a new heading at your cursors
        Message 3 of 5 , Jul 31, 2009
        • 0 Attachment
          This isn't quite what I meant
          setting insert to true allows you to choose heading from the paragraph style drop down, but inserts a new heading at your cursors location

          I would like it to change the current paragraph the cursor is in to a heading
        • Dav Glass
          That is an unsupported action, file an enhancement request and I will see about it..
          Message 4 of 5 , Jul 31, 2009
          • 0 Attachment
            That is an unsupported action, file an enhancement request and I will
            see about it..

            http://yuilibrary.com/projects/yui2/newticket?type=enhancement&component=Editor&version=2.7.0

            Dav

            On Fri, 31 Jul 2009, msaspence wrote:

            > This isn't quite what I meant
            > setting insert to true allows you to choose heading from the paragraph style drop down, but inserts a new heading at your cursors location
            >
            > I would like it to change the current paragraph the cursor is in to a heading
            >

            --
            Dav Glass
            davglass@...
            blog.davglass.com


            + Windows: n. - The most successful computer virus, ever. +
            + A computer without a Microsoft operating system is like a dog
            without bricks tied to its head +
            + A Microsoft Certified Systems Engineer is to computing what a
            McDonalds Certified Food Specialist is to fine cuisine +
          • msaspence
            Cool, thanks have done: http://yuilibrary.com/projects/yui2/ticket/2528273
            Message 5 of 5 , Aug 3 2:17 AM
            • 0 Attachment
            Your message has been successfully submitted and would be delivered to recipients shortly.