Aloha editor - connecting a directory in the repository browser - javascript

I am experimenting with the Aloha inline HTML5 editor (www.aloha-editor.com).
I am creating a CMS system that will allow the administrator to upload files for download.
These will go into an upload directory (public_html/upload).
When a user wants to put in a link they can click the repository browser and be presented with a list of files in this upload folder.
Does anyone know how I can do this? I don't understand the documentation at all, and even copying the javascript source from their examples isn't helping at all.
Thanks

You'll have to implement an Aloha repository.
you should get enough information on this discussion : http://getsatisfaction.com/aloha_editor/topics/how_to_add_a_directory_to_the_repository_window
Please feel free to ask more, i've done the stuff, so i could help.
Best regards

Related

Audio Editor in a Django App?

I'm in a little over my head with a project for a client, they want to build an audio editor that will allow the user to trim their uploaded audio files and save them. I've built the file uploader, and the detail view for the individual audio files, my question is how would this best be implemented? I've been looking at
Peaks.js
and I want to make sure thats the right way to go before diving in. Never used npm in a django project before, is it like using any other js library?
I've also been told about sox, which is great for manipulating the sound files, but what about displaying the sound to the user/editing in the browser?
Any help or general direction-pointing would be greatly appreciated and could save me a bunch of time potentially.

Create folder & file plugin Sketch

I'm trying to create a plugin for Sketch that creates a folder and a file inside it on a specific location.
Since the sketch plugins are written with JavaScript I've been searching how to create a folder and/or a file with JavaScript, and then think about the path, but i'm stuck, i couldn't find the answer so i decided to open a thread myself.
The question is: How can i create a folder/file with JavaScript? and how i can choose where i put it?
Any feedback is welcome I'm new to posting here and a noob with programming so feel free to redirect me to documentation and/or tutorials that may be useful for my issue.
The simple answer is you can't. Imagine if any old website could create files and folders on your disk whenever it liked. The security implications would be horrendous.
This can be done with the user's permission.
AppSandbox provides this functionality for you:
https://github.com/bomberstudios/sketch-sandbox/blob/master/sandbox.js
The user is prompted to grant permission to do this the first time they run your plug-in. Every time after, it simply writes the file without interruption.

Can Dropzone.js be used to upload music and video files?

I have had a successful experience with Dropzone when working images and files like .doc, pdf, etc. Now I am working on a music and video website and would like to use dropzone for the upload because of its nice experience. Any documentation on it? Has anyone used it for a similar purpose? Or are there alternatives that does the job out-of-the-box? Appreciate. Kindly share with me. Please only free and opensource libraries.
Based on the docs at http://www.dropzonejs.com/#configuration-options I see that it refers to files and not images only.
There is also an acceptedFiles method:
http://www.dropzonejs.com/#config-acceptedFiles
You can set there the accepted type of files then (like .mp3 etc).
You can find more about Dropzone.js at https://github.com/enyo/dropzone where as I can see on issues there are several open or closed issues related with the kind of files you want to use.

request example project with amcharts php mysql

I have a small company and I need show my result from MySQL to amcharts.
I am easy user and I study this link but can't use this tut for myself because i don't undestand each code for which file and what manage my files to show chart for example witch code depend html file or js or php file.
i use netbeans and xampp for run codes.
please help me and if you can send me exmaple file that i can use amcharts.
thanks a lot.
Welcome to SO,
Here usually coders help for the major bugs which have been tried for long time still hard to find the solution and or help people who are constantly learning and facing some bugs...
For you, quick help I can give but you make sure you go through the code, learn some basics regarding that...
Download the link in tutorial tutorial_assets_external-data_v3.zip, extract it and place it in htdocs in xampp folder(c drive or where you installed it).
Run XAMPP, open this localhost/phpmyadmin in browser and create a database named "test".
Open the database and import the data.sql in extracted folder.
Run in browser localhost/"specify_name_of_extracted_folder"
Start small... Study the tutorial... enjoy coding

How do I add HTML files to a GitHub repo?

I have a HTML file, along with some JS and CSS files, in a project I have been working on, and am trying to put them onto my GitHub account. I created a new repo, but when I tried to add the files (some are in folders), I didn't know how to. The website isn't very helpful and I'm really stuck. Could anyone tell me how to upload them? I'm new to GitHub and so far very confused by it.
Thanks a lot in advance xx
If you are using windows, try github for windows application. It's easy way to start using github if you are new to it.

Categories