Question for editing code on the admin side

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
redcoat
New Member
New Member
Posts: 5
Joined: Wed Nov 03, 2010 3:54 pm

Question for editing code on the admin side

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Question for editing code on the admin side

Post by calguy1000 »

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.
redcoat
New Member
New Member
Posts: 5
Joined: Wed Nov 03, 2010 3:54 pm

Re: Question for editing code on the admin side

Post 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)
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Question for editing code on the admin side

Post 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.
Last edited by Wishbone on Thu Nov 18, 2010 7:40 pm, edited 1 time in total.
Post Reply

Return to “Layout and Design (CSS & HTML)”