TinyMCE - can I add a hyperlink to 'Insert Image' function?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

TinyMCE - can I add a hyperlink to 'Insert Image' function?

Post by simonmlewis »

I have the Insert Image plugin working, but I need to add a link or icon to the tab, so that they can click it, and it opens in a PopUp, the Media Library, so they can view the images they want to insert.

Source
Image Description
I'd like to add, for example: "Media Library: <img icon here>"?

Code: Select all

label:"Source",autofocus:!0,onchange:r},h,{name:"alt",type:"textbox",label:"Image description"},{type:"container",label:"Dimensions",layout:"flex",direction:"row",align:"center",spacing:5,items:[{name:"width",type:"textbox",maxLength:3,size:3,onchange:a},{type:"label",text:"x"},{name:"height",type:"textbox",maxLength:3,size:3
I've found this in the Image Plugin file. So I was wondering if this could be tweaked to allow the extra line, and a URL that generates a popup? The plan is, that on the popup, there is a button by each image that they pastes the content of a DIV back into the /source field in TinyMCE.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Post Reply