Sha256: bbe51589ba9f0a013a8928cc72030998b869f4d99b21606d3df5e30f08a92dbf

Contents?: true

Size: 266 Bytes

Versions: 4

Compression:

Stored size: 266 Bytes

Contents

$(function() {
    var mime = Olelo.page_mime;
    if (mime == 'application/x-empty' || mime == 'inode/directory') {
	mime = Olelo.default_mime;
    }
    var match = /text\/x-(\w+)/.exec(mime);
    if (match) {
	$('#edit-content').markupEditor(match[1]);
    }
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
olelo-0.9.6 plugins/editor/markup/script/init.js
olelo-0.9.5 plugins/editor/markup/script/init.js
olelo-0.9.4 plugins/editor/markup/script/init.js
olelo-0.9.3 plugins/editor/markup/script/init.js