How to add the images folder in ckeditor in html file - html

how to add the 'images' folder that appears by default in CK Editor when you try and upload an image. I want the images with main-folder and sub-folder to appear in the folder tree. Im using normal Ckeditor in html file.
CKEDITOR.replace('editor1', {
fullPage: true,
extraPlugins: 'mention,imageuploader',
allowedContent: true,
autoGrow_onStartup: true,
filebrowserImageBrowseUrl: 'ckeditor/plugins/imageuploader/imgbrowser.php?type=Images',
filebrowserImageUploadUrl: 'ckeditor/plugins/imageuploader/imgupload.php?type=Images'
});
I have added the image uploader plugins in the plugin folder and add the above code in my html file. then i clicked on imgae icon and popup will be opened. There im able to see the "browse" button. Once i clicked the browse button, im able to see the images where i have saved in the folder.
But im facing issue that if i click upload button, images are not attaching. page got stucked after clicked upload button.
http://localhost/admin_29/ckeditor/plugins/imageuploader/imgupload.php
Actually im looking that, once we clicked on the browse-server button.popup should open. In that popup,
List item
left side,folder should be there. If i click any image on the folder
List item
Right side, Image should display
List item
If i click upload button in the popup, new image should upload and image should save in the folder itself
Any help appreciated.
Thanks in advance

In my past experience if using localhost and especially chrome, you will get errors. Check out your dev console and most likely see some kind of error like:
Not allowed to load local resource: file:///F:/.../images/logo.png
Since you can browse the image folder might just be localhost issue. Why not try in on web server and see if works ok?

Related

Change the URL of my angular app using HREF in the same domain

Is it possible to change the URL using href in html? If i'm clicking the <a href="http://localhost:4200/products.html>Products</a> from the index.html file. The url is changing 1 second and go back to the http://localhost:4200/
Even my src/app/home/home.component.html have <a href="http://localhost:4200/products.html>Products</a> is still going back to the http://localhost:4200/ when I clicked the link.
I searched a lot about this problem but all suggestion is about the routing. But I want to refresh the browser by clicking. If href is not possible please give me any idea to solve this problem. Please help me about this problem. Thank you in advance!
If you're using HTML5 mode in the $location service, you can link to the page relatively from the root of the app:
Products
That stops the $location service from rewriting the href. More: angular docs
where have you placed your products.html file because what i think is that this page is not being served on this location(localhost:4200/products.html). i am assuming that the products page is an angular component if it is then you can simply implement the click event on the tag and on click you can navigate the user to this route and refresh the app using the following code
this.router.navigateByUrl('products').then(() => {
window.location.reload();
})
if its not an angular component then you have to conform that this page is being served on the server location from which you are calling it just write the link
localhost:4200/products.html
on the browser if this page doesnot show then the problem is with the way you are serving this page to server because it means that the page is not found on this path. and you cannot call the html pages that way you are doing in localhost. just right click on the products.html file where ever it is in your computer and click on open with option choose a browzer and open file in the browzer and you will see the url on the search bar of the browzer just copy the url and paste it in href="/paste copied_url here/" and now it should open the products.html file.
Hope this helps. if you have any questions just comment.

Wordpress customize specific site

I made a little game using html and new I´m looking to publish it on my wordpress site. There is only on problem though, I don´t know how to add a page in html code. If I add a new Site I can only edit the text and attach pictures, but is there a way to add a complete page under a domain like www.example.com/page ?
Upload the HTML file to your website's root directory using FTP. If you name it game.html, you should be able to open the file by navigating directly to it www.example.com/game.html.
You go to My Page. Then there is a submenu Publish. Click on the button Add next to Pages. When you did that, there is that small menu in the middle where you can choose several options such as header, bold, italics, etc.. In the top right corner of that menu, there are two options: Visual | HTML. Just click on HTML and you can add HTML code.

How to save a webpage

I'm on a website which has multiple links, but when I click a new link, it just changes the screen, not the url. I'm trying to save the screen, but it is saving the original screen. I right click, save as, webpage, complete or webpage, html only (I've tried both), but the original screen shows when I open the file. Any way to get the screen that I want? The one in which I clicked the link.
I have to assume that the links are javascript or php connected and are echoing a new html code when you click the link. The echo once clicked should change the source output to your browser. Try to right click on the page after you clicked the link and select view source, or inspect element and see if you can find these links targets' or copy paste the renewed browser code to your browser into a notepad document then save the file as a .html save to your desktop and open. That should create the same screen you see when you click a link.
click the link, view the change you want to save. right click and select "view source" copy the source and paste into notepad. Save as a.html file and run with a browser. this should produce the visual are looking for then print.

Flask download box

I'm trying to make a button that will show the "Save as" download box. The images that I want to offer for download are not in the static folder, nor they will be. Using flask.send_file works by opening the file in the browser.
How can I use send.file in order to bring the download box up, without submitting the page (without changing the current page)?
Look into the as_attachment option in send_file:
http://flask.pocoo.org/docs/api/#flask.send_file
Here's a somewhat related question:
Content-Disposition:What are the differences between "inline" and "attachment"?

open pdf in internet-explorer-8

I have a file Life.pdf in the directory
\10.230.193.131\dev\Reports
From my window explorer I am able to browse the folder and I can open the file\10.230.193.131\dev\Reports\Life.pdf , manually.
Now in my html page I am having a link to open the file
"open
file"
When I point mouse on the link in the left bottom corner of the browser it is also written like
file://10.230.193.131/dev/Reports/Life.pdf
But on clicking on the link , the pdf file is not opening.
No warning is also displayed.
But when my click on the link from my friend's system, he is able to open the file.
What can I do to make it openable form my system ?
Note we both are in same network and both can access the file
\10.230.193.131\dev\Reports\Life.pdf using file browser/window explorer.
I just need to make it openable from ie 8 and above.
Please try: <a href="http://10.230.193.131/dev/reports/Life.xls" target="_blank">open file<a>
Thanks.