Sha256: bcc00ad334f773a340103c234f582c508691d00ae6128684abde943304510f9d

Contents?: true

Size: 691 Bytes

Versions: 3

Compression:

Stored size: 691 Bytes

Contents

$(function() {
	var summer_note;
	summer_note = $('.post_edit_box');
	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

3 entries across 3 versions & 1 rubygems

Version Path
phcpresspro-5.8.6 app/assets/javascripts/phcpresspro/editors/phc_summernote.js
phcpresspro-5.8.5 app/assets/javascripts/phcpresspro/editors/phc_summernote.js
phcpresspro-5.8.4 app/assets/javascripts/phcpresspro/editors/phc_summernote.js