Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

ydn-javascript · Yahoo! User Interface Library Group

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 12955
  • Category: JavaScript
  • Founded: Dec 15, 2005
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
customizing RTEditor   Topic List   < Prev Topic  |  Next Topic >
Summarize Messages Sort by Date  
#52224 From: Steffen Voß <steffen.voss@...>
Date: Fri Dec 4, 2009 8:34 am
Subject: customizing RTEditor
kaffeeringe
Send Email Send Email
 
Hi all!

I would like to add a thing to the advanced image button in the YUI rich
text editor. Where do I customize that?

There is the URL field and I would like to add a button that opens a
popup provided by a gallery. There is such function available in Xinha.
So it should be easy to adjust that for YUI.

--
Gruß
Steffen Voß

http://kaffeeringe.de | Internet & Kreativität

Tel.: +49 431 88 88 68-3
E-Mail: kontakt@...
Skype: steffenvoss
Jabber: kaffeeringe@...
ICQ: 447639251



#52225 From: Dave Lozier <dave@...>
Date: Fri Dec 4, 2009 1:07 pm
Subject: Re: customizing RTEditor
dave.lozier
Send Email Send Email
 
Hi Steffen,

Have a look at what was done at http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/ by Dennis Muhlestein.

Also, here http://developer.yahoo.com/yui/examples/editor/imagebrowser_editor.html is a custom image browser example similar to what you have described.

Hope that helps!

~Dave


On Fri, Dec 4, 2009 at 2:34 AM, Steffen Voß <steffen.voss@...> wrote:
Hi all!

I would like to add a thing to the advanced image button in the YUI rich
text editor. Where do I customize that?

There is the URL field and I would like to add a button that opens a
popup provided by a gallery. There is such function available in Xinha.
So it should be easy to adjust that for YUI.

--
Gruß
Steffen Voß

http://kaffeeringe.de | Internet & Kreativität

Tel.: +49 431 88 88 68-3
E-Mail: kontakt@...
Skype: steffenvoss
Jabber: kaffeeringe@...
ICQ: 447639251


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
   http://groups.yahoo.com/group/ydn-javascript/

<*> Your email settings:
   Individual Email | Traditional

<*> To change settings online go to:
   http://groups.yahoo.com/group/ydn-javascript/join
   (Yahoo! ID required)

<*> To change settings via email:
   ydn-javascript-digest@yahoogroups.com
   ydn-javascript-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
   ydn-javascript-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
   http://docs.yahoo.com/info/terms/



#52226 From: krupica piotr <pkrupica@...>
Date: Fri Dec 4, 2009 9:18 pm
Subject: Re: customizing RTEditor
pkrupica@...
Send Email Send Email
 


2009/12/4 Dave Lozier <dave@...>
 

Hi Steffen,

Have a look at what was done at http://allmybrain.com/2007/10/16/an-image-upload-extension-for-yui-rich-text-editor/ by Dennis Muhlestein.

Also, here http://developer.yahoo.com/yui/examples/editor/imagebrowser_editor.html is a custom image browser example similar to what you have described.

Hope that helps!

~Dave




On Fri, Dec 4, 2009 at 2:34 AM, Steffen Voß <steffen.voss@...> wrote:
Hi all!

I would like to add a thing to the advanced image button in the YUI rich
text editor. Where do I customize that?

There is the URL field and I would like to add a button that opens a
popup provided by a gallery. There is such function available in Xinha.
So it should be easy to adjust that for YUI.

--
Gruß
Steffen Voß

http://kaffeeringe.de | Internet & Kreativität

Tel.: +49 431 88 88 68-3
E-Mail: kontakt@...
Skype: steffenvoss
Jabber: kaffeeringe@...
ICQ: 447639251


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
   http://groups.yahoo.com/group/ydn-javascript/

<*> Your email settings:
   Individual Email | Traditional

<*> To change settings online go to:
   http://groups.yahoo.com/group/ydn-javascript/join
   (Yahoo! ID required)

<*> To change settings via email:
   ydn-javascript-digest@yahoogroups.com
   ydn-javascript-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
   ydn-javascript-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
   http://docs.yahoo.com/info/terms/




#52309 From: Eric Cire <codedude11@...>
Date: Mon Jan 4, 2010 5:09 pm
Subject: getKey versus getField
codedude11
Send Email Send Email
 
HI,

I was wondering what the difference in the YUI DataTable API is between these 2 functions:
1. oColumn.getKey()
2. oColumn.getField()

I did an alert of both of these and was getting the same strings returned.

Thanks!


#52310 From: Satyam <satyam@...>
Date: Mon Jan 4, 2010 6:06 pm
Subject: Re: getKey versus getField
satyamutsa
Send Email Send Email
 
El 04/01/2010 18:09, Eric Cire escribió:
HI,

I was wondering what the difference in the YUI DataTable API is between these 2 functions:
1. oColumn.getKey()
2. oColumn.getField()

I did an alert of both of these and was getting the same strings returned.

Thanks!
In the same API you can see that the column has properties field and key and this methods reflect that, more or less.  The properties of the Column are those you set via the columns definitions when you set the table description. 

While all columns need to have a key value to identify themselves, and that key usually corresponds to the incoming field names in the DataSource.responseSchema.fields array, it doesn't need to be so.  The column can have a key value and you can use the field property to tell which field to use for that column. If you don't provide a field, DataTable will use key, which is what most people do. 

If you are using a JSON data source and used dot notation to access deeply nested fields, your fieldnames are going to be very long, that is when you might want to think of using different field and key values so you can still keep key short.

If you don't provide a value for the field property, it will remain null, however, the getField() method will then return the key value, that's why I said "more or less", because field might be null and getField will return, as in your case, the same value that getKey returns.

Satyam



#52311 From: Christian Tiberg <ctiberg@...>
Date: Tue Jan 5, 2010 8:43 am
Subject: Re: getKey versus getField
ctiberg
Send Email Send Email
 
Wow, that was some great info right there. I've been taking pains to get everything to the top level in my JSON responses, now I won't have to - thanks!

Best regards,
 Christian Tiberg


2010/1/4 Satyam <satyam@...>
 

El 04/01/2010 18:09, Eric Cire escribió:

HI,

I was wondering what the difference in the YUI DataTable API is between these 2 functions:
1. oColumn.getKey()
2. oColumn.getField()

I did an alert of both of these and was getting the same strings returned.

Thanks!
In the same API you can see that the column has properties field and key and this methods reflect that, more or less.  The properties of the Column are those you set via the columns definitions when you set the table description. 

While all columns need to have a key value to identify themselves, and that key usually corresponds to the incoming field names in the DataSource.responseSchema.fields array, it doesn't need to be so.  The column can have a key value and you can use the field property to tell which field to use for that column. If you don't provide a field, DataTable will use key, which is what most people do. 

If you are using a JSON data source and used dot notation to access deeply nested fields, your fieldnames are going to be very long, that is when you might want to think of using different field and key values so you can still keep key short.

If you don't provide a value for the field property, it will remain null, however, the getField() method will then return the key value, that's why I said "more or less", because field might be null and getField will return, as in your case, the same value that getKey returns.

Satyam




#52312 From: Satyam <satyam@...>
Date: Tue Jan 5, 2010 4:09 pm
Subject: Re: getKey versus getField
satyamutsa
Send Email Send Email
 
It is a recent change and it had a few bugs since some pieces of code that used 'key' were overlooked when dividing its duties between getKey and getField.  Since really few people even know of their existence, there have been few test cases and a few things slipped past without anyone noticing and, though I doubt it, some might still lie hidden.  You might want to check the bug reports just in case.

Here is a perfect example of why a company would care to release its product as open source. Yahoo on its own would not have the ability to test this change in all the possible combinations the DataTable offers.  External users provide test cases that nobody else might have thought about.  We shouldn't be shy about reporting an error, that's the way we contribute.

Satyam



El 05/01/2010 9:43, Christian Tiberg escribió:
Wow, that was some great info right there. I've been taking pains to get everything to the top level in my JSON responses, now I won't have to - thanks!

Best regards,
 Christian Tiberg


2010/1/4 Satyam <satyam@...>
 

El 04/01/2010 18:09, Eric Cire escribió:

HI,

I was wondering what the difference in the YUI DataTable API is between these 2 functions:
1. oColumn.getKey()
2. oColumn.getField()

I did an alert of both of these and was getting the same strings returned.

Thanks!
In the same API you can see that the column has properties field and key and this methods reflect that, more or less.  The properties of the Column are those you set via the columns definitions when you set the table description. 

While all columns need to have a key value to identify themselves, and that key usually corresponds to the incoming field names in the DataSource.responseSchema.fields array, it doesn't need to be so.  The column can have a key value and you can use the field property to tell which field to use for that column. If you don't provide a field, DataTable will use key, which is what most people do. 

If you are using a JSON data source and used dot notation to access deeply nested fields, your fieldnames are going to be very long, that is when you might want to think of using different field and key values so you can still keep key short.

If you don't provide a value for the field property, it will remain null, however, the getField() method will then return the key value, that's why I said "more or less", because field might be null and getField will return, as in your case, the same value that getKey returns.

Satyam



No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.725 / Virus Database: 270.14.125/2600 - Release Date: 01/04/10 20:35:00

 
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help