ranelpadon / ckeditor-leaflet Goto Github PK
View Code? Open in Web Editor NEWLeaflet Maps Plugin for CKEditor
License: GNU Lesser General Public License v2.1
Leaflet Maps Plugin for CKEditor
License: GNU Lesser General Public License v2.1
Is this specific only for Drupal Leaflet or can be use to any framework that uses Leaflet and Ckeditor?
Hi,
after update from 1.5 to 1.7 I got only errors and no image map. Its happened after I choose searched address:
Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys
iB.j @ util.js:210
(anonymous) @ js?libraries=places&callback=dummy:140
(anonymous) @ js?libraries=places&callback=dummy:50
(anonymous) @ js?libraries=places&callback=dummy:42
(anonymous) @ js?libraries=places&callback=dummy:50
(anonymous) @ js?libraries=places&callback=dummy:111
(anonymous) @ js?libraries=places&callback=dummy:42
(anonymous) @ js?libraries=places&callback=dummy:111
Xb @ js?libraries=places&callback=dummy:44
Wb.cb @ js?libraries=places&callback=dummy:111
(anonymous) @ stats.js:1
jquery.min.js?v=qoyg:4 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ jquery.min.js?v=qoyg:4
ajax @ jquery.min.js?v=qoyg:4
a.ajax @ jquery-migrate.min.js?v=qoyg:2
r.(anonymous function) @ jquery.min.js?v=qoyg:4
getJSON @ jquery.min.js?v=qoyg:4
commit @ leaflet.js?t=GB8C:277
(anonymous) @ ckeditor.js?v=qoyg:588
foreach @ ckeditor.js?v=qoyg:587
commitContent @ ckeditor.js?v=qoyg:588
(anonymous) @ plugin.js?t=GB8C:1148
m @ ckeditor.js?v=qoyg:10
CKEDITOR.event.CKEDITOR.event.fire @ ckeditor.js?v=qoyg:12
onClick @ ckeditor.js?v=qoyg:598
(anonymous) @ ckeditor.js?v=qoyg:538
m @ ckeditor.js?v=qoyg:10
CKEDITOR.event.CKEDITOR.event.fire @ ckeditor.js?v=qoyg:12
click @ ckeditor.js?v=qoyg:537
(anonymous) @ ckeditor.js?v=qoyg:529
m @ ckeditor.js?v=qoyg:10
CKEDITOR.event.CKEDITOR.event.fire @ ckeditor.js?v=qoyg:12
(anonymous) @ ckeditor.js?v=qoyg:62
otile3.mqcdn.com/tiles/1.0.0/map/10/550/344.jpeg:1 GET http://otile3.mqcdn.com/tiles/1.0.0/map/10/550/344.jpeg net::ERR_NAME_NOT_RESOLVED
otile4.mqcdn.com/tiles/1.0.0/map/10/551/344.jpeg:1 GET http://otile4.mqcdn.com/tiles/1.0.0/map/10/551/344.jpeg net::ERR_NAME_NOT_RESOLVED
otile4.mqcdn.com/tiles/1.0.0/map/10/550/345.jpeg:1 GET http://otile4.mqcdn.com/tiles/1.0.0/map/10/550/345.jpeg net::ERR_NAME_NOT_RESOLVED
otile1.mqcdn.com/tiles/1.0.0/map/10/551/345.jpeg:1 GET http://otile1.mqcdn.com/tiles/1.0.0/map/10/551/345.jpeg net::ERR_NAME_NOT_RESOLVED
otile3.mqcdn.com/tiles/1.0.0/map/5/16/10.jpeg:1 GET http://otile3.mqcdn.com/tiles/1.0.0/map/5/16/10.jpeg net::ERR_NAME_NOT_RESOLVED
otile4.mqcdn.com/tiles/1.0.0/map/5/17/10.jpeg:1 GET http://otile4.mqcdn.com/tiles/1.0.0/map/5/17/10.jpeg net::ERR_NAME_NOT_RESOLVED
otile1.mqcdn.com/tiles/1.0.0/map/5/17/11.jpeg:1 GET http://otile1.mqcdn.com/tiles/1.0.0/map/5/17/11.jpeg net::ERR_NAME_NOT_RESOLVED
otile4.mqcdn.com/tiles/1.0.0/map/5/16/11.jpeg:1 GET http://otile4.mqcdn.com/tiles/1.0.0/map/5/16/11.jpeg net::ERR_NAME_NOT_RESOLVED
Do you have any plans to support other languages? I'd like to add a translation but it seems that current version doesn't support it.
Instead of writing http://
on all the urls in the plugin, you could write //
. That way, when someone puts it on a secure page (https), it won't refuse to load the resources.
The Mapquest provider is no longer functioning properly due to Mapquest making a change in their api.
You can read about it here: http://stackoverflow.com/questions/38315300/mapquest-direct-tile-access-discontinued
Hi! I have some problems with Google autocomplete when I tested your demo on my domains. I tried to find some info about configuring this feature in the Installation Guide https://github.com/ranelpadon/ckeditor-leaflet/blob/master/Installation%20Guide.txt but I had no luck. Do I have to do anything to make it (Google autosuggest) work or it has to work right out of the box without any additional settings? I tested both your demo and my custom CKBuilder build on 2 different servers/domains - the result is the same. Thanks in advance and sorry for (maybe) stupid question!
I got error after I got map. Its in v.1.5.
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
I wanted to disable plugin in some forms, so I tried
config.removePlugins = 'leaflet'
Toolbar button disappeared, but there are still plenty of scripts loaded from maps.googleapis.com which affect performance.
Plugin was included by CKEditor builder.
I'd like to include ckeditor-leaflet in a Drupal distribution that I'm working on but, unfortunately, the LGPL v3 license used by ckeditor-leaflet is not compatible with GPLv2 (which is what all code on Drupal.org must be licensed as, per the license policy: http://drupal.org/licensing/faq#q4).
A list of GPLv2-compatible licenses can be found at http://drupal.org/node/1475972#gplv2-compatible-licenses.
I was wondering if it would be possible to change the plugin's license or dual-license it under MIT or another permitted license.
It would be great to be able to use ckeditor-leaflet with GPLv2 projects such as Drupal, Wordpress, etc!
Hello, it seems autocomplete works only in the first CKEditor instance and not in the rest.
One solution is to use native CKEditor methods for accessing dialog fields instead of jQuery. The native methods ensure access to instance-specific fields.
In order to test this just create two maps with different locations (say Athens, Berlin). Open the dialog of the Athens map take a look at the lat lon values and click cancel or x to close the dialog. Now open the dialog of the Berlin map. Observe that the lat/lon values have changed to the values of Athens. If you press the ok button the Berlin map will change to Athens although no modification was performed by the user inside the dialog.
The problem lies to mapcontainer reset being done only on commit, when it probably should be done on hide.
Hi Ranel! It's me again! First of all I'd like to tell you some words about my use case. I'd like to use your plugin in my homegrown CMS which I use in my small sites. Sites have many pages and only a few of them (like "Contacts" page, for example) really needs maps. On other pages it's not necessary. So I don't want the addition of new feature negatively affect perfomance. If I add your plugin I can see that many scripts from maps.googleapis.com are loaded on the page load even if I don't open "Create Map" dialog. So I tried to move googleapis loading into the dialog and it seems that it works as I expected:
CKEDITOR.scriptLoader.load('//maps.googleapis.com/maps/api/js?libraries=places&callback=dummy&key=...');
Leaflet.js
file. If you want I can make a pull request, but I think you should check everything twice before it and decide is it a good idea or not. I'm not sure, maybe I missed something. You can compare my version here:If I type a location like Shenzhen and then hit "Return" the type head box looks up the location but then on hitting return the dialog sheet is dismissed and the map is not updated. As a user I would like to be able to type the name of the place, hit return and have the coordinates updated. Then click the ok button to dismiss the dialog and update the map.
Its not work.
When I search address I see In console message:
This API project is not authorized to use this API. Please ensure this API is activated in the Google Developers Console: https://console.developers.google.com/apis/api/places_backend?project=_ For more information on authentication and Google Maps JavaScript API services please see: https://developers.google.com/maps/documentation/javascript/get-api-key
And popup message that its impossible open any map.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.