Posted By

shrop on 09/10/08


Tagged

drupal bueditor


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

wirenaught


Bueditor Insert Image Code with float options


 / Published in: JavaScript
 

  1. php:
  2. $imce_url = function_exists('imce_access') && imce_access() ? url('imce') : '';
  3.  
  4. return "js:
  5. var B = eDefBrowseButton('$imce_url', 'attr_src', 'Browse', 'image');
  6. var form = [
  7. {name: 'src', title: 'Image URL', suffix: B},
  8. {name: 'width', title: 'Width x Height', suffix: ' x ', getnext: true, attributes: {size: 3}},
  9. {name: 'height', attributes: {size: 3}},
  10. {name: 'alt', title: 'Alternative text'},
  11. {name: 'class', title: 'Position: floatleft, floatright, or leave blank'}
  12. ];
  13. eDefTagDialog('img', form, 'Insert/edit image', 'OK');
  14. ";

Report this snippet  

You need to login to post a comment.