Hi!
I created a plugin to display a floating-toolbar inside the editor when user selects some text. Now I wanted to upload this plugin to the ckeditor website (http://ckeditor.com/addon/floating-tools) but the zip file containing the plugin code is rejected. I keep getting the following error when uploading the plugin file:
The package with an addon appears to be invalid:
._plugin.js (line 1):
illegal character
JSC_PARSE_ERROR. Parse error. illegal character at floating-tools/._plugin.js line 1 : 1
Does anyone know what the reason for this can be? This is the zip-file that causes problems: http://demo.stracker.net/floating-tools.zip
I also tried to compress again, in case the file got corrupt. The archive can be extraced without problems on my computer. I do not use special compression software, but the built-in compression tool of OS X
I check my plugin.js file, but cannot find any problem... If there is some naming-rules or other conventions that I missed to follow then please point me in the right direction. However, I did not find any hints on this when I was searching for the possible reason myself.
It's because of the __MACOSX
It's because of the __MACOSX folder or other hidden file/folder. See that the error is in floating-tools/._plugin.js and this is not a path to your plugin file.
We'll fix this issue in builder soon, but for now you need to clean up your folder from that MacOS's specific files manually. I guess that you can do that from the terminal.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Solved
Thanks a lot!
I did re-create the zip-archive from terminal (this does not add the _MACOSX folder) and then I could successfully upload the archive :-)