Bueditor Insert Image Code with float options


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.