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

Re: [ydn-javascript] How can we call cmd_removeformat() from a btnclick

Expand Messages
  • Dav Glass
    The cmd_??? methods are private and meant to be called from inside the execCommand method. So intead of editor.cmd_removeformat try:
    Message 1 of 2 , Jul 2, 2009
    • 0 Attachment
      The cmd_??? methods are private and meant to be called from inside the
      execCommand method.

      So intead of editor.cmd_removeformat try:
      editor.execCommand('removeformat');

      See if that helps..
      Dav

      On Thu, 02 Jul 2009, sai.kumar_gv wrote:

      > Hi ,
      >
      > I want to call cmd_removeformat() method in editor.js from button click even on RTE . If call it as requirementsEditor.cmd_removeformat(); its not removing the format .
      >
      > Thanks
      > Regards
      > SK
      >

      --
      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 +
    Your message has been successfully submitted and would be delivered to recipients shortly.