Lines Matching refs:thees
29 function addEventHandler(thees, example, control) { argument
35 if (typeof thees.surroundSelectedText !== 'undefined') {
36 text = thees.val();
37 selection = thees.getSelection();
44 thees.setSelection(lineStart, lineEnd);
45 selection = thees.getSelection();
63 thees.replaceSelectedText(placeholder, "select");
65 thees.surroundSelectedText(before, after, "select");
68 thees.val(before + placeholder + after + "\n\n" + thees.val());
71 thees.focus();
72 thees.keyup();
76 function buildControls(opts, thees, controls) { argument
91 addEventHandler(thees, example, control);
132 function getAddExampleControl(options, thees, previewArea, example) { argument
140 thees.val(example.markdown + "\n\n\n" + thees.val());
141 thees.keyup();
146 function getPreviewControl(options, thees, previewArea) { argument
155 previewArea.find('.meltdown_preview').height(thees.outerHeight());
164 update(previewArea.children(':eq(1)'), thees);
370 var defaults, opts, thees, wrap, previewWrap, preview, bar, controls;
375 thees = jQuery(this);
376 thees.wrap('<div class="' + name + '_wrap" />');
377 …thees.before('<div><div style="display: none;" class="' + name + '_preview-wrap"><span class="' + …
378 wrap = thees.parent();
384 buildControls(opts, thees, controls);
385 controls.append(getPreviewControl(opts, thees, previewWrap));
387 wrap.width(thees.outerWidth());
388 preview.height(thees.outerHeight());
390 thees.on('keyup', function (event) {
392 update(preview, thees);