From 6fcfb7c04d32e1c8b26a312295bf7ac3ec2d2ad7 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 13 Jul 2018 19:06:45 +0200 Subject: Fixed many permissions and began admin interface --- public/bower_components/ckeditor/samples/old/autocomplete/utils.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 public/bower_components/ckeditor/samples/old/autocomplete/utils.js (limited to 'public/bower_components/ckeditor/samples/old/autocomplete/utils.js') diff --git a/public/bower_components/ckeditor/samples/old/autocomplete/utils.js b/public/bower_components/ckeditor/samples/old/autocomplete/utils.js new file mode 100644 index 0000000..f7c5885 --- /dev/null +++ b/public/bower_components/ckeditor/samples/old/autocomplete/utils.js @@ -0,0 +1,6 @@ +/* + Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. + For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license +*/ +var autocompleteUtils={generateData:function(a,c){return Object.keys(a).sort().map(function(a,b){return{id:b,name:c+a}})},getAsyncDataCallback:function(a){return function(c,d,b){setTimeout(function(){b(a.filter(function(a){return 0===a.name.indexOf(c)}))},500*Math.random())}},getSyncDataCallback:function(a){return function(c,d,b){b(a.filter(function(a){return 0===a.name.indexOf(c)}))}},getTextTestCallback:function(a,c,d){function b(a,c){var b=a.slice(0,c),e=a.slice(c),b=b.match(f);return!b||d&&e&& +!e.match(/^\s/)?null:{start:b.index,end:c}}var f=function(){var b=a+"\\w",b=c?b+("{"+c+",}"):b+"*";return new RegExp(b+"$")}();return function(a){return a.collapsed?CKEDITOR.plugins.textMatch.match(a,b):null}}}; \ No newline at end of file -- cgit v1.2.3