diff options
| author | Benjamin Southall <applemansigloo@gmail.com> | 2017-09-03 23:15:56 +0900 |
|---|---|---|
| committer | Benjamin Southall <applemansigloo@gmail.com> | 2017-09-03 23:15:56 +0900 |
| commit | 9e2f9f49ec9803adfa0249161c8d2188ee0d40ca (patch) | |
| tree | ee04586a6ce84ebd0929fa5f3fac69394868e306 /js/sceditor/minified/plugins/format.js | |
| parent | f68e130bfe8690b174cc915e9f18335ef296e2d3 (diff) | |
Add sceditor WYSIWIG post editor support
Diffstat (limited to 'js/sceditor/minified/plugins/format.js')
| -rw-r--r-- | js/sceditor/minified/plugins/format.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/sceditor/minified/plugins/format.js b/js/sceditor/minified/plugins/format.js new file mode 100644 index 00000000..233c8f59 --- /dev/null +++ b/js/sceditor/minified/plugins/format.js @@ -0,0 +1,2 @@ +/* SCEditor v1.5.2 | (C) 2016, Sam Clarke | sceditor.com/license */ +!function(a){"use strict";a.sceditor.plugins.format=function(){var b,c,d=this,e={p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",address:"Address",pre:"Preformatted Text"};d.init=function(){var b=this.opts,d=b.paragraphformat;b.plugins&&b.plugins.indexOf("bbcode")>-1||(d&&(d.tags&&(e=d.tags),d.excludeTags&&a.each(d.excludeTags,function(a,b){delete e[b]})),this.commands.format||(this.commands.format={exec:c,txtExec:c,tooltip:"Format Paragraph"}),b.toolbar===a.sceditor.defaultOptions.toolbar&&(b.toolbar=b.toolbar.replace(",color,",",color,format,")))},b=function(a,b){a.sourceMode()?a.insert("<"+b+">","</"+b+">"):a.execCommand("formatblock","<"+b+">")},c=function(c){var d=this,f=a("<div />");a.each(e,function(c,e){a('<a class="sceditor-option" href="#">'+(e.name||e)+"</a>").click(function(){return d.closeDropDown(!0),e.exec?e.exec(d):b(d,c),!1}).appendTo(f)}),d.createDropDown(c,"format",f)}}}(jQuery);
\ No newline at end of file |
