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
Question for editing code on the admin side
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Question for editing code on the admin side
I don't think TinyMCE has a setting for that.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Question for editing code on the admin side
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?calguy1000 wrote: I don't think TinyMCE has a setting for that.
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
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.
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.
Last edited by Wishbone on Thu Nov 18, 2010 7:40 pm, edited 1 time in total.