PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 2.9.19.5
Pods – Custom Content Types and Fields v2.9.19.5
2.7.31.4 2.8.23.5 2.9.19.5 3.0.10.5 3.1.4.3 3.2.8.4 3.3.9.2 2.8.23.4 2.9.19.4 3.0.10.4 3.1.4.2 3.2.8.3 3.3.9.1 trunk 1.14.8 2.7.31.3 2.8.23.3 2.9.19.3 3.0.10.3 3.1.4.1 3.2.0 3.2.1 3.2.1.1 3.2.2 3.2.4 3.2.5 3.2.6 3.2.7 3.2.7.1 3.2.8 3.2.8.1 3.2.8.2 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9
pods / components / Templates / assets / js / scripts-pod_reference.js
pods / components / Templates / assets / js Last commit date
editor1.js 4 days ago handlebars.baldrick2.js 4 days ago handlebars2.js 4 days ago jquery.baldrick3.js 4 days ago panel.js 4 days ago scripts-pod_reference.js 4 days ago scripts-view_template.js 4 days ago
scripts-pod_reference.js
34 lines
1 var htmleditor;
2
3 CodeMirror.defineMode( "mustache", function ( config, parserConfig ) {
4 var mustacheOverlay = {
5 token : mustache
6 };
7 return CodeMirror.overlayMode( CodeMirror.getMode( config, parserConfig.backdrop || "text/html" ), mustacheOverlay );
8 } );
9
10 // setup pod selection
11 jQuery( function ( $ ) {
12
13 htmleditor = CodeMirror.fromTextArea( document.getElementById( "content" ), {
14 lineNumbers : true,
15 matchBrackets : true,
16 mode : "mustache",
17 indentUnit : 4,
18 indentWithTabs : true,
19 enterMode : "keep",
20 tabMode : "shift",
21 lineWrapping : true
22
23 } );
24
25 /* Setup autocomplete */
26 htmleditor.on( 'keyup', podFields );
27
28 $( '.pod-switch' ).baldrick( {
29 request : ajaxurl, method : 'POST'
30 } );
31
32 } );
33
34