Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Keeping Rich Text Editor from editing the URL of the image   Message List  
Reply | Forward Message #50391 of 52114 |
I've implement the Rich Text Editor with the Custom Image Browser plugin  (http://developer.yahoo.com/yui/examples/editor/imagebrowser_editor.html)

I want to disable the url from being editable once they selected a image.

I copied the code as requested:

myEditor.on('afterOpenWindow', function() {
//When the window opens, disable the url of the image so they can't change it
var url = Dom.get('insertimage_url');
if (url) {
url.disabled = true;
}
}, myEditor, true);

But the url is still enable even when trying the example at
http://developer.yahoo.com/yui/examples/editor/imagebrowser_editor.html








Thu Jul 9, 2009 9:53 pm

ymorin
Offline Offline
Send Email Send Email

Forward
Message #50391 of 52114 |
Expand Messages Author Sort by Date

I've implement the Rich Text Editor with the Custom Image Browser plugin (http://developer.yahoo.com/yui/examples/editor/imagebrowser_editor.html\ ) I want to...
Yannick Morin
ymorin
Offline Send Email
Jul 9, 2009
9:54 pm

That example needs to be updated ;) Try this: var url = Dom.get(myEditor.get('id') + '_insertimage_url'); That should do it.. Dav ... -- Dav Glass ...
Dav Glass
dav.glass
Offline Send Email
Jul 10, 2009
12:14 pm
Advanced

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