"title", "content", "icon", "accesskey", "weight" "Zaakcentowanie", "js: get = editor.active.getSelection(); replace = get.replace(/[\\s]+$/,\'\'); match = get.match(/[\\s]+$/); if (null != match) { tail = \' \'; } else { tail = \'\'; } editor.active.replaceSelection(\'*\' + replace + \'*\' + tail, \'end\');", "em", "", "0" "Silne zaakcentowanie", "js: get = editor.active.getSelection(); replace = get.replace(/[\\s]+$/,\'\'); match = get.match(/[\\s]+$/); if (null != match) { tail = \' \'; } else { tail = \'\'; } editor.active.replaceSelection(\'**\' + replace + \'**\' + tail, \'end\');", "strong", "", "1" "Odnośnik", "js: get = editor.active.getSelection(); replace = get.replace(/[\\s]+$/,\'\'); match = get.match(/[\\s]+$/); if (null != match) { tail = \' \'; } else { tail = \'\'; } var url = prompt(\'URL:\', \'http://\'); if (null != url) { editor.active.replaceSelection(\'\"\' + replace + \'\":\' + url + tail); }", "a", "", "2" "Cytat", "js: get = editor.active.getSelection(); replace = get.replace(/(\\r\\n|\\r|\\n)/g,\'\\n> \'); editor.active.replaceSelection(\'\\n\\n\' + \'> \' + replace + \'\\n\\n\');", "quote", "", "3" "Kod", "js: get = editor.active.getSelection(); replace = get.replace(/[\\s]+$/,\'\'); if (get.length >= 10) { var lang = prompt(\'PHP? HTML? CSS?\', \'php\'); if (null != lang) { editor.active.tagSelection(\'\\n\\n/---code \' + lang.toLowerCase() + \'\\n\', \'\\n\' + \'\\\\---\' + \'\\n\\n\'); } else { editor.active.tagSelection(\'\\n\\n/---code\\n\', \'\\n\' + \'\\\\---\' + \'\\n\\n\'); } }", "pre code", "", "4" "Lista punktorowana", "- %TEXT%", "ul", "", "5" "Lista numerowana", "1) %TEXT%", "ol", "", "6" "Kod (w linii)", "js: get = editor.active.getSelection(); replace = get.replace(/[\\s]+$/,\'\'); match = get.match(/[\\s]+$/); if (null != match) { tail = \' \'; } else { tail = \'\'; } editor.active.replaceSelection(\'`\' + replace + \'`\' + tail, \'end\');", "code", "", "7" "Nagłówek", "js: get = editor.active.getSelection(); replace = get.replace(/[\\s]+$/,\'\'); length = replace.length; var line = \'\'; char = new String(\'=\'); while (--length >= 0) { line = line + char; } if (replace.length >= 3) { editor.active.replaceSelection(replace + \'\\n\' + line + \'\\n\', \'end\'); }", "h3", "", "8" "Nagłówek mniejszy", "js: get = editor.active.getSelection(); replace = get.replace(/[\\s]+$/,\'\'); length = replace.length; var line = \'\'; char = new String(\'-\'); while (--length >= 0) { line = line + char; } if (replace.length >= 3) { editor.active.replaceSelection(replace + \'\\n\' + line + \'\\n\', \'end\'); }", "h4", "", "9" "Koniec skrótu", "js: editor.active.tagSelection(\'\', \'\\n\' + \'\' + \'\\n\', \'end\');", "break", "", "10"