Page 1 of 1

Question for editing code on the admin side

Posted: Thu Nov 18, 2010 5:52 pm
by redcoat
Hi there,

This is real simple, but I cant seem to find the correct file to edit.

I am adding content pages that have hyperlinks to an external page outside of the CMS. When you click on the link button in the editor, you have another box appear with all the options for making the link. The target drop down box is currently defaulted to open in this window/frame but i would prefer it to have the open in new window (_blank) option.

I know this isn't a big deal but its one less step to do and we have ALOT of things to link to.

cheers

Re: Question for editing code on the admin side

Posted: Thu Nov 18, 2010 5:56 pm
by calguy1000
I don't think TinyMCE has a setting for that.

Re: Question for editing code on the admin side

Posted: Thu Nov 18, 2010 6:11 pm
by redcoat
calguy1000 wrote: I don't think TinyMCE has a setting for that.
Here is a piece of the html code it puts out, and I am pretty sure the option order can be changed in the appropriate file correct?

Open in this window / frame
Open in new window (_blank)
Open in parent window / frame (_parent)
Open in top frame (replaces all frames) (_top)

Re: Question for editing code on the admin side

Posted: Thu Nov 18, 2010 7:29 pm
by Wishbone
The order is hardcoded into TinyMCE. Hacking original code is frowned upon, since these will have to be remembered when upgrading, etc.

I'm not a JavaScript expert, but it might be possible to load another JavaScript file containing a re-definition of the small subroutine in question, so that Tiny reads your re-definition instead of the standard one.. No hacking of the original code needed.