CKEditor 4, open links new windows from pasted links - hyperlink

I have just "installed" CKEditor 4 but are having problems with links not opening in a new window. I have found results on google were you can edit the links-window-dialog within the editor, but my problem is, when text is pasted from another source, which can contain links, they dont get the attribute target="_blank" per default.
Any ideas how to solve that?

Related

Having issues when trying to link my html pages via an relative path

I am trying to link my home page to various other pages using the code below.
<a href = “./My Website.html”>Home</a>
<a href = “./Career.html”>Career</a>
However when I run this and I hit the hyperlink to navigate to the page Career for example, I receive the following error:
Safari can not find the file
file:///Users/Documents/HTML/der/“./Career.htmlâ€%C2%9D
I am using the free in built text editor to write the HTML on my macbook, and the to files are stored in the same folder
How do I resolve this so that my hyperlinks link to the correct file, and not add in the special characters?
It might be worth noting that when I go in to the address bar and manually remove the '“./' and 'â€%C2%9D' and refresh, my page will load as expected.
Thanks
Try and see if this works:
<a href='/MyWebsite'>Home</a>
<a href='/Career'>Career</a>
Do you have a screenshot of your directory?

<a href link doesn't open when clicked on. it only works if I right click and then open in new tab

So I'm still learning, and I can't figure out why my links won't work. If I click "open in new tab", it does work. I'm trying to link to another external page.
I've read that this could be due to another linked js file... but what js code could effect links like this?
I mean if I'm going to go through all my other files I'd rather know what I'm looking for.
Here is my link:
visit
FYI, no links work for external URLs, but it works when I use links to navigate around my own website.
check you achor link. That is lacking of closing tag </a>

How to view dynamically generated source code in browser

This is not a question about a bug in my code, but a general one about how source code is refreshed in browsers. It does relate to debugging code so I think it's okay to ask here.
Essentially I have a rails app which renders partials using ajax. I'm trying to do some debugging, but the source code viewable in the browser (Chrome/Saf/FF) does not update when the partial is rendered, making it hard to debug the markup generated by the partial. Is there a way of accessing the partial code through the browser?
I have dynamically generated id tags and want to have a look at what's being produced.
Press F12
Go to "Network" tab
Click "XHR" amongst others like "All", "JS", "CSS", etc.
Visit the page and do the AJAX call
Click the new Network request that will show right after
Click "Preview" / "Response" tabs (whichever you need to inspect) amongst others like "Headers", "Cookies"
I think your question is pretty bad, but I'm not one to downvote.
I googled "see dynamic content in source" and got the answer, jest because I wanted to "let me google that for you", but SO forbids it :(
Unless I'm wrong about what you're asking, any dynamic content is displayed in browser's developer tools, which in FF is under F12 in inspector.

How can I find where actually is the theme file?

I am new to Symfony and I need to work to a large project with many themes to modify them. How can I find where actually is the theme file in which module, just looking at the HTML browser output? Or do I need to look somewhere else, routing for example?
What you want to do is use the Web Debug Toolbar.
Once you have that running on the page, using appname_dev.php, simple click the view link and it will show you which templates have been used. If you need to know which layout to use then use logs link, click none the sfPHPView.

Cannot type into an editor in a xul panel

the Cannot type into an editor in a xul panel is a known bug in firefox.
I simply want to reuse my code from my google chrome extension by hosting a webapp online and including it in the extension both google chrome and firefox by using a popup window.
This is how I include the webapp
<popupset id="mainPopupSet">
<menupopup id="smsflatrate-popup">
<iframe height="500px" src="http://webapp.mysite.net/"
flex="1" type="content-primary"/>
</menupopup>
</popupset>
The problem is, it is possible to focus input elements but the input fields do not react on key-events, so no input can be provided.
It seems that there is some kind of solution for this problem, but I think I do not really understand what to do here.
E.g. from the link above, what would be a solution according to this post?
There are many ways to display HTML in a XUL UI:
1) including HTML inline in the XUL document. This should work fine everywhere,
including in panels.
2) include an HTML IFRAME in the XUL document. This currently works fine
everywhere, except that IF the iframe is in a panel, there are some problems
with focus. This bug is about that one issue.
3) instead of a panel, you can create a XUL window using window.open that
contains HTML inline or in an IFRAME, and everything should work.
Having said that, if I open this bug's testcase in a Firefox trunk build, I
*can* tab into the textbox and type into it, so it looks like focus is
basically working now? The problem is that I can't focus the textbox by
clicking on it. In fact, if you click on the arrow to do a search, you navigate
to a new page where there is a textbox that you *can* click to focus.
So I think we have here just some simple bug that's preventing click-to-focus
from working, sometimes. Enn, can you look into that?
It seems to me that given the list of suggestions your best choice is to open a new window to represent your popup. You can make it look like a popup by setting its position, turning off OS crhome, etc.

Resources