|
|
Drupal example source code file (imce_wysiwyg.js)
The imce_wysiwyg.js Drupal example source code// $Id: imce_wysiwyg.js,v 1.3.4.1 2010/02/21 00:07:04 sun Exp $ /** * Wysiwyg API integration helper function. */ function imceImageBrowser(field_name, url, type, win) { // TinyMCE. if (win !== 'undefined') { win.open(Drupal.settings.imce.url + encodeURIComponent(field_name), '', 'width=760,height=560,resizable=1'); } } /** * CKeditor integration. */ var imceCkeditSendTo = function (file, win) { var parts = /\?(?:.*&)?CKEditorFuncNum=(\d+)(?:&|$)/.exec(win.location.href); if (parts && parts.length > 1) { CKEDITOR.tools.callFunction(parts[1], file.url); win.close(); } else { throw 'CKEditorFuncNum parameter not found or invalid: ' + win.location.href; } }; Other Drupal examples (source code examples)Here is a short list of links related to this Drupal imce_wysiwyg.js source code file: |
"Drupal" is a registered trademark of Dries Buytaert.
my drupal tutorials and examples
Copyright
1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.
Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.