convert plugins to ES modules, transpile es5 versions backwards compatibility
This commit is contained in:
7
plugin/search/search.es5
Normal file
7
plugin/search/search.es5
Normal file
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* This is used to compile a self-registering
|
||||
* es5 compatible version of the plugin.
|
||||
*/
|
||||
|
||||
import plugin from './search.js'
|
||||
Reveal.registerPlugin( plugin );
|
@ -200,7 +200,22 @@ function Hilitor(id, tag)
|
||||
toggleSearch();
|
||||
}
|
||||
}, false );
|
||||
if( window.Reveal ) Reveal.registerKeyboardShortcut( 'CTRL + Shift + F', 'Search' );
|
||||
|
||||
closeSearch();
|
||||
return { open: openSearch };
|
||||
|
||||
return {
|
||||
|
||||
id: 'search',
|
||||
|
||||
init: reveal => {
|
||||
|
||||
reveal.registerKeyboardShortcut( 'CTRL + Shift + F', 'Search' );
|
||||
|
||||
},
|
||||
|
||||
open: openSearch
|
||||
|
||||
}
|
||||
})();
|
||||
|
||||
export default RevealSearch;
|
Reference in New Issue
Block a user