jquery - To fetch and edit image inside tinymce -


i need find image file path (file_path) available inside tinymce. since using jquery tinymce version. think can find image inside tinymce specified file path.

function call thickbox parent window

     self.parent.edit_img(title,alternate,align,file_path); 

function declaration in parent

     function edit_img(title,alternate,align,file_path)         {             var content=tinymce.get('comment').getcontent();             alert('image path: '+file);             alert(content);         }  

help me fetch image inside tinymce , need edit image attributes

solution problem here function call thickbox parent window

  self.parent.edit_img(title,alternate,align,file_path); 

function declaration in parent

 function edit_img(title,alternate,align,file_path) {  file=decodeuricomponent(file);  //to image name image_path  file_arr=file.split('/');  file=file_arr[file_arr.length-1];   //checking image inside tinymce , changing edited attributes  tinymce.activeeditor.$("img[src$='"+file+"']").attr({'alt' : alternate , 'align' : align , 'title' : title});      } 

description since use many images need identify image editing checked

$("img[src$='"+file+"']")

in way had edited images via calling thick box , updating specific image inside tinymce, thank you


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -