<commit_before>var utils = require('../../../utils');

module.exports = function MarkdownType(config) {
	var self = {
		selector: '.field-type-markdown[for="' + config.fieldName + '"]',
		elements: {
			label: '.FormLabel',
			value: 'textarea[name="' + config.fieldName + '.md"]',
			bold: 'button[title="Bold"]',
			italic: 'button[title="Italic"]',
			h1: 'button[title="Heading 1"]',
			h2: 'button[title="Heading 2"]',
			h3: 'button[title="Heading 3"]',
			h4: 'button[title="Heading 4"]',
			link: 'button[title="URL/Link"]',
			image: 'button[title="Image"]',
			ul: 'button[title="Unordered List"]',
			ol: 'button[title="Ordered List"]',
			quote: 'button[title="Quote"]',
			code: 'button[title="Code"]',
			previewToggle: 'button[title="Preview"]',
			preview: '.md-editor__preview'
		},
		commands: [{
			togglePreview: function(){
				return this<commit_msg>test(e2e): Fix markdown field tests?<commit_after>var utils = require('../../../utils');

module.exports = function MarkdownType(config) {
	var self = {
		selector: '.field-type-markdown[for="' + config.fieldName + '"]',
		elements: {
			label: '.FormLabel',
			value: 'textarea[name="' + config.fieldName + '.md"]',
			bold: 'button[title="Bold"]',
			italic: 'button[title="Italic"]',
			h1: 'button[title="Heading 1"]',
			h2: 'button[title="Heading 2"]',
			h3: 'button[title="Heading 3"]',
			h4: 'button[title="Heading 4"]',
			link: 'button[title="URL/Link"]',
			image: 'button[title="Image"]',
			ul: 'button[title="Unordered List"]',
			ol: 'button[title="Ordered List"]',
			quote: 'button[title="Quote"]',
			code: 'button[title="Code"]',
			previewToggle: 'button[title="Preview"]',
			preview: '.md-editor__preview'
		},
		commands: [{
			togglePreview: function(){
				this.api.pause(500);
				return this
{'fraction_non_alphanumeric': 0.22377232142857142, 'fraction_numerical': 0.011160714285714286, 'mean_word_length': 4.603125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4730928', 'n_tokens_mistral': 727, 'n_tokens_neox': 623, 'n_words': 118}