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

Re: [ydn-javascript] Possilbe to load custom css files into YUI Rich Text Editor

Expand Messages
  • Dav Glass
    How s this example: http://blog.davglass.com/files/yui/editor30/ ... -- Dav Glass davglass@gmail.com blog.davglass.com + Windows: n. - The most successful
    Message 1 of 5 , Aug 3, 2009
    • 0 Attachment
      How's this example:
      http://blog.davglass.com/files/yui/editor30/

      On Mon, 03 Aug 2009, dan_clark@... wrote:

      > Hi,
      >
      > hoping this group can help point me in the right direction on a feature I am hoping is supported by the YUI Rich Text Editor.
      >
      > I was wondering if it is possible to load in custom css files and have the text editor load in the styles as a drop down selection for users to apply to the input text.
      >
      > For example, specify a css file that has a tag (called 'style1') that sets a specific style to the text, and a tag (called 'style2') that sets a text decoration (these are fairly basic examples). The wysiwyg tools then provide a drop down of these styles for the user to apply to whatever text they wish to input.
      >
      > Is something like this possible with this editor and if so can anyone provide me with information on how to achieve this.
      >
      > Thanks for your help.
      >

      --
      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 +
    • dan_clark@ymail.com
      Hi Dav, thanks for pointing me at the example, that is a great help. I wonder however, how and if it would be possible to work custom css tags into this,
      Message 2 of 5 , Aug 4, 2009
      • 0 Attachment
        Hi Dav,

        thanks for pointing me at the example, that is a great help.

        I wonder however, how and if it would be possible to work custom css tags into this, looking at your example, it works well for re-styling generic tags such as <body> or <p> etc, but would it be possible to get it to work with a tag for example:

        <div class=newStyle> and how would I go about that? or would that require a 'source' editor tab and the user inputting the styling information manually.

        My goal is to basically be able to style as much of a page as possible just through the rich text editor, rather than just style the text and have the page styles already built in.

        Hope I am making sense and not just confusing the issue.
      • Dav Glass
        That would be similar to the way this example works: http://blog.davglass.com/files/yui/editor40/ ... -- Dav Glass davglass@gmail.com blog.davglass.com +
        Message 3 of 5 , Aug 4, 2009
        • 0 Attachment
          That would be similar to the way this example works:

          http://blog.davglass.com/files/yui/editor40/

          On Tue, 04 Aug 2009, dan_clark@... wrote:

          > Hi Dav,
          >
          > thanks for pointing me at the example, that is a great help.
          >
          > I wonder however, how and if it would be possible to work custom css tags into this, looking at your example, it works well for re-styling generic tags such as <body> or <p> etc, but would it be possible to get it to work with a tag for example:
          >
          > <div class=newStyle> and how would I go about that? or would that require a 'source' editor tab and the user inputting the styling information manually.
          >
          > My goal is to basically be able to style as much of a page as possible just through the rich text editor, rather than just style the text and have the page styles already built in.
          >
          > Hope I am making sense and not just confusing the issue.
          >

          --
          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.