Skip to content

Instantly share code, notes, and snippets.

@imarklee imarklee/snippet.php
Created Mar 22, 2019

Embed
What would you like to do?
settings.markupSet.push({
name: "Bold",
key:'B',
openWith:'[b]',
closeWith:'[/b]',
className:'kmt-markitup-bold'
});
settings.markupSet.push({
name: "Italic",
key:'I',
openWith:'[i]',
closeWith:'[/i]',
className:'kmt-markitup-italic'
});
settings.markupSet.push({
name: "Underline",
key:'U',
openWith:'[u]',
closeWith:'[/u]',
className:'kmt-markitup-underline'
});
settings.markupSet.push({separator:'---------------' });
settings.markupSet.push({
name: "Bullet List",
openWith:'[list]\n',
closeWith:'\n[/list]',
className:'kmt-markitup-bullet'
});
settings.markupSet.push({
name: "Numeric List",
openWith:'[list=[![Starting number]!]]\n',
closeWith:'\n[/list]',
className:'kmt-markitup-numeric'
});
settings.markupSet.push({
name: "Bullet",
openWith:'[*]',
closeWith:'[/*]',
className:'kmt-markitup-list'
});
settings.markupSet.push({separator:'---------------' });
settings.markupSet.push({
name: "Quote",
openWith:'[quote]',
closeWith:'[/quote]',
className:'kmt-markitup-quote'
});
settings.markupSet.push({
name: "Code",
openWith:'<pre class="line-numbers"><code class="language-markup">',
closeWith:'</code></pre>',
className:'kmt-markitup-code'
});
settings.markupSet.push({separator:'---------------' });
settings.markupSet.push({
name: "Smile",
openWith:':)',
className:'kmt-markitup-smile'
});
settings.markupSet.push({
name: "Happy",
openWith:':D',
className:'kmt-markitup-happy'
});
settings.markupSet.push({
name: "Surprised",
openWith:':o',
className:'kmt-markitup-surprised'
});
settings.markupSet.push({
name: "Tongue",
openWith:':p',
className:'kmt-markitup-tongue'
});
settings.markupSet.push({
name: "Unhappy",
openWith:':(',
className:'kmt-markitup-unhappy'
});
settings.markupSet.push({
name: "Wink",
openWith:';)',
className:'kmt-markitup-wink'
});
// if($.isArray(Komento.options.config.smileycode)) {
// $.each(Komento.options.config.smileycode, function(index, code) {
// settings.markupSet.push({
// name: code,
// openWith: code,
// className: 'kmt-markitup-custom-' + index
// });
// });
// }
return settings;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.