Sha256: d40d02c3ad8a991e22f3cb3cff66fbf6b7722bf6c59b90dfc5a825321d27bc2a

Contents?: true

Size: 688 Bytes

Versions: 7

Compression:

Stored size: 688 Bytes

Contents

$(function() {
	var summer_note;
	summer_note = $('.summernote');
	summer_note.summernote({
		height: 800,
		toolbar: [
			// [groupName, [list of button]]
			['style', ['bold', 'italic', 'underline', 'clear']],
			['font', ['strikethrough', 'superscript', 'subscript']],
			['fontsize', ['fontsize']],
			['color', ['color']],
			['para', ['ul', 'ol', 'paragraph']],
			['height', ['height']],
			['view', ['fullscreen', 'codeview']],
		],
		codemirror: {
			lineNumbers: true,
			tabSize: 2,
			theme: "solarized light"
		}
	});
	summer_note.code(summer_note.val());
	return summer_note.closest('form').submit(function() {
		summer_note.val(summer_note.code());
		return true;
	});
});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
phcpresspro-5.8.3 app/assets/javascripts/phcpresspro/editors/phc_summernote.js
phcpresspro-5.8.2 app/assets/javascripts/phcpresspro/editors/phc_summernote.js
phcpresspro-5.8.1 app/assets/javascripts/phcpresspro/editors/phc_summernote.js
phcpresspro-5.8.0 app/assets/javascripts/phcpresspro/editors/phc_summernote.js
phcpresspro-5.7.7 app/assets/javascripts/phcpresspro/editors/phc_summernote.js
phcpresspro-5.7.6 app/assets/javascripts/phcpresspro/editors/phc_summernote.js
phcpresspro-5.7.5 app/assets/javascripts/phcpresspro/editors/phc_summernote.js