HTML File upload plugin for CKEditor - javascript

I need to add a plugin for CKEditor that can insert an html file from my hard drive into the textarea. I looked for CKFinder, but it appears that it cannot upload html files. Any suggestions would be greatly appreciated. Please help me out.

You can customize the allowedExtensions in CKFinder's config.php file, or its equivalent file in ASP. A little lower than halfway the file, just below the warning comment about Flash files, you will find them. See the screenshot how I customized them.

Related

pdfkit library is not embedding images in the pdf file generated

I am using PDFkit with node.js to convert an html page to pdf. HTML page has several image tags in body tag.
However When I convert html to pdf I get the black page generated. Can someone help me with the issue? thanks in advance!
#simran I hope this answer solves your issue. Try this logic it works for me:
I just posted it on another thread for pdf related issue: https://stackoverflow.com/a/64114358/3202440

Which js file is running on which element of a page

I have downloaded a responsive bootstrap website template. It has a lot more extra content and js files that i don't need for my website. I want to remove it along with .js file being used for that content. Is there any plugin or way to find out which js file is being used on which content so that i could make changes accordingly ??
Thanks,
Any help is appreciated...
Have you looked at this question.
I believe you should be able to find out something that should help you in the answer to that question
find unused images, css rules, js script blocks

JS overlay without direct access to html

I am attempting to add a javascript overlay onload, without direct access to the html. I'm only able to upload .js and .css files.
How would I go about doing this, I've searched all over, but as I am no expert at this I'm seeking a simple solution which will allow me to maybe call html and insert it into an overlay, by using javascript only.
I am unsure of the coding of the .js file to contain all of the overlay code and html code combined.
I've been looking at document.getElementById and document.write to do this, am I correct in trying to do it this way?
Any suggestions?
There is no way you can add an overlay to an existing html file without importing the new JS and CSS files in the html file. How ever, if there are other JS files used or imported to the HTML file, edit it and add your code in the JS file. It'll run since the JS file is already imported in the HTML.

javascript in Joomla custom module

I have a code generated by "highslide" software and what it does is to create an image gallery.
This code consists of .css html and javascript.
If I place the htmal code in the Joomla's "index.php" file and then the rest of the file in the root directory then the image gallery is working and is placed in every page in Joomla.
I do not want this. Is there a way of assigning that image gallery to only pages I choose?
Or is there a way to find out what is the index.php main file for that specific page I need to have the gallery and paste the code in there?
I have tried to insert the code in a custom module via the Joomla's editor but when I click on save then it compiles the code and remove certain parts of it and cannot work.
It removes the link to javascript and to css file.
Is there a way without any other third party extension to have that code into the custom module without then Joomla eliminate the half of the code?
Thank you,
Best Regards,
Andreas Achilleos
I would not add things like this to your index.php file. This is Joomla, not a static html website ;)
You have 3 options:
Option 1 would be to develop your own module and install it on your Joomla site. This option would take the longest amount of time and would require you to get your handy in a bit of coding.
Option 2 would be to firstly download, install and enable a plugin called Sourcerer. Once done, in the Joomla backend, create a new "Custom Module" and manually add your html code. After, below the big textbox, you will see a button below saying "Insert code". O modal will popup allowing you to add your custom code. Simply add your CSS and JS using the <style> and <script> tags.
Option 3 would be to use a pre-built Image Gallery extensions from the Joomla Extensions Directory. There are loads to choose from.
Hope this helps

TinyMCE image upload & insert without a gallery

I've been searching for a plugin of TinyMCE that allows to upload and insert an image in the text, the problem I've found with many plugins is allowing to see and select from a gallery of images of the server, that's a functionality I don't need or want, just allow the user to select an image from his computer, upload and insert it.
There is a plugin that acomplishes only this?
Thanks
jbimages is what you might looking for.
Easy to integrate and to configure.
Just pups up the file uploader and places the image wherever you have your cursor in a post.
Just do not forget to set after installations the config files to 600 or 400.
You can find how-to
http://pastebin.com/
TinyMCE does this as standard:
try http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/external_image_list_url

Categories