"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/jscripts/sceditor/editor_plugins/format.js" between
mybb_1819.zip and mybb_1820.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

format.js  (mybb_1819):format.js  (mybb_1820)
/* SCEditor v1.4.7 | (C) 2015, Sam Clarke | sceditor.com/license */ /* 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:"H eading 5",h6:"Heading 6",address:"Address",pre:"Preformatted Text"};d.init=funct ion(){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){d elete e[b]})),this.commands.format||(this.commands.format={exec:c,txtExec:c,tool tip:"Format Paragraph"}),b.toolbar===a.sceditor.defaultOptions.toolbar&&(b.toolb ar=b.toolbar.replace(",color,",",color,format,")))},b=function(a,b){a.sourceMode ()?a.insert("<"+b+">","</"+b+">"):a.execCommand("formatblock","<"+b+">")},c=func tion(c){var d=this,f=a("<div />");a.each(e,function(c,e){a('<a class="sceditor-o ption" 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)}}}(j Query); !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:"H eading 5",h6:"Heading 6",address:"Address",pre:"Preformatted Text"};d.init=funct ion(){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){d elete e[b]})),this.commands.format||(this.commands.format={exec:c,txtExec:c,tool tip:"Format Paragraph"}),b.toolbar===a.sceditor.defaultOptions.toolbar&&(b.toolb ar=b.toolbar.replace(",color,",",color,format,")))},b=function(a,b){a.sourceMode ()?a.insert("<"+b+">","</"+b+">"):a.execCommand("formatblock","<"+b+">")},c=func tion(c){var d=this,f=a("<div />");a.each(e,function(c,e){a('<a class="sceditor-o ption" 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)}}}(j Query);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)