diff --git a/src/bb-themes/admin_default/js/markitup/jquery.markitup.js b/src/bb-themes/admin_default/js/markitup/jquery.markitup.js
deleted file mode 100755
index 10add9d27..000000000
--- a/src/bb-themes/admin_default/js/markitup/jquery.markitup.js
+++ /dev/null
@@ -1,593 +0,0 @@
-// ----------------------------------------------------------------------------
-// markItUp! Universal MarkUp Engine, JQuery plugin
-// v 1.1.x
-// Dual licensed under the MIT and GPL licenses.
-// ----------------------------------------------------------------------------
-// Copyright (C) 2007-2011 Jay Salvat
-// http://markitup.jaysalvat.com/
-// ----------------------------------------------------------------------------
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-// ----------------------------------------------------------------------------
-(function($) {
- $.fn.markItUp = function(settings, extraSettings) {
- var options, ctrlKey, shiftKey, altKey;
- ctrlKey = shiftKey = altKey = false;
-
- options = { id: '',
- nameSpace: '',
- root: '',
- previewInWindow: '', // 'width=800, height=600, resizable=yes, scrollbars=yes'
- previewAutoRefresh: true,
- previewPosition: 'after',
- previewTemplatePath: '~/templates/preview.html',
- previewParser: false,
- previewParserPath: '',
- previewParserVar: 'data',
- resizeHandle: true,
- beforeInsert: '',
- afterInsert: '',
- onEnter: {},
- onShiftEnter: {},
- onCtrlEnter: {},
- onTab: {},
- markupSet: [ { /* set */ } ]
- };
- $.extend(options, settings, extraSettings);
-
- // compute markItUp! path
- if (!options.root) {
- $('script').each(function(a, tag) {
- miuScript = $(tag).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/);
- if (miuScript !== null) {
- options.root = miuScript[1];
- }
- });
- }
-
- return this.each(function() {
- var $$, textarea, levels, scrollPosition, caretPosition, caretOffset,
- clicked, hash, header, footer, previewWindow, template, iFrame, abort;
- $$ = $(this);
- textarea = this;
- levels = [];
- abort = false;
- scrollPosition = caretPosition = 0;
- caretOffset = -1;
-
- options.previewParserPath = localize(options.previewParserPath);
- options.previewTemplatePath = localize(options.previewTemplatePath);
-
- // apply the computed path to ~/
- function localize(data, inText) {
- if (inText) {
- return data.replace(/("|')~\//g, "$1"+options.root);
- }
- return data.replace(/^~\//, options.root);
- }
-
- // init and build editor
- function init() {
- id = ''; nameSpace = '';
- if (options.id) {
- id = 'id="'+options.id+'"';
- } else if ($$.attr("id")) {
- id = 'id="markItUp'+($$.attr("id").substr(0, 1).toUpperCase())+($$.attr("id").substr(1))+'"';
-
- }
- if (options.nameSpace) {
- nameSpace = 'class="'+options.nameSpace+'"';
- }
- $$.wrap('
');
- $$.wrap('
');
- $$.wrap('
');
- $$.addClass("markItUpEditor");
-
- // add the header before the textarea
- header = $('').insertBefore($$);
- $(dropMenus(options.markupSet)).appendTo(header);
-
- // add the footer after the textarea
- footer = $('').insertAfter($$);
-
- // add the resize handle after textarea
- if (options.resizeHandle === true && $.browser.safari !== true) {
- resizeHandle = $('
')
- .insertAfter($$)
- .bind("mousedown", function(e) {
- var h = $$.height(), y = e.clientY, mouseMove, mouseUp;
- mouseMove = function(e) {
- $$.css("height", Math.max(20, e.clientY+h-y)+"px");
- return false;
- };
- mouseUp = function(e) {
- $("html").unbind("mousemove", mouseMove).unbind("mouseup", mouseUp);
- return false;
- };
- $("html").bind("mousemove", mouseMove).bind("mouseup", mouseUp);
- });
- footer.append(resizeHandle);
- }
-
- // listen key events
- $$.keydown(keyPressed).keyup(keyPressed);
-
- // bind an event to catch external calls
- $$.bind("insertion", function(e, settings) {
- if (settings.target !== false) {
- get();
- }
- if (textarea === $.markItUp.focused) {
- markup(settings);
- }
- });
-
- // remember the last focus
- $$.focus(function() {
- $.markItUp.focused = this;
- });
- }
-
- // recursively build header with dropMenus from markupset
- function dropMenus(markupSet) {
- var ul = $(''), i = 0;
- $('li:hover > ul', ul).css('display', 'block');
- $.each(markupSet, function() {
- var button = this, t = '', title, li, j;
- title = (button.key) ? (button.name||'')+' [Ctrl+'+button.key+']' : (button.name||'');
- key = (button.key) ? 'accesskey="'+button.key+'"' : '';
- if (button.separator) {
- li = $(''+(button.separator||'')+' ').appendTo(ul);
- } else {
- i++;
- for (j = levels.length -1; j >= 0; j--) {
- t += levels[j]+"-";
- }
- li = $(''+(button.name||'')+' ')
- .bind("contextmenu", function() { // prevent contextmenu on mac and allow ctrl+click
- return false;
- }).click(function() {
- return false;
- }).bind("focusin", function(){
- $$.focus();
- }).mouseup(function() {
- if (button.call) {
- eval(button.call)();
- }
- setTimeout(function() { markup(button) },1);
- return false;
- }).hover(function() {
- $('> ul', this).show();
- $(document).one('click', function() { // close dropmenu if click outside
- $('ul ul', header).hide();
- }
- );
- }, function() {
- $('> ul', this).hide();
- }
- ).appendTo(ul);
- if (button.dropMenu) {
- levels.push(i);
- $(li).addClass('markItUpDropMenu').append(dropMenus(button.dropMenu));
- }
- }
- });
- levels.pop();
- return ul;
- }
-
- // markItUp! markups
- function magicMarkups(string) {
- if (string) {
- string = string.toString();
- string = string.replace(/\(\!\(([\s\S]*?)\)\!\)/g,
- function(x, a) {
- var b = a.split('|!|');
- if (altKey === true) {
- return (b[1] !== undefined) ? b[1] : b[0];
- } else {
- return (b[1] === undefined) ? "" : b[0];
- }
- }
- );
- // [![prompt]!], [![prompt:!:value]!]
- string = string.replace(/\[\!\[([\s\S]*?)\]\!\]/g,
- function(x, a) {
- var b = a.split(':!:');
- if (abort === true) {
- return false;
- }
- value = prompt(b[0], (b[1]) ? b[1] : '');
- if (value === null) {
- abort = true;
- }
- return value;
- }
- );
- return string;
- }
- return "";
- }
-
- // prepare action
- function prepare(action) {
- if ($.isFunction(action)) {
- action = action(hash);
- }
- return magicMarkups(action);
- }
-
- // build block to insert
- function build(string) {
- var openWith = prepare(clicked.openWith);
- var placeHolder = prepare(clicked.placeHolder);
- var replaceWith = prepare(clicked.replaceWith);
- var closeWith = prepare(clicked.closeWith);
- var openBlockWith = prepare(clicked.openBlockWith);
- var closeBlockWith = prepare(clicked.closeBlockWith);
- var multiline = clicked.multiline;
-
- if (replaceWith !== "") {
- block = openWith + replaceWith + closeWith;
- } else if (selection === '' && placeHolder !== '') {
- block = openWith + placeHolder + closeWith;
- } else {
- string = string || selection;
-
- var lines = selection.split(/\r?\n/), blocks = [];
-
- for (var l=0; l < lines.length; l++) {
- line = lines[l];
- var trailingSpaces;
- if (trailingSpaces = line.match(/ *$/)) {
- blocks.push(openWith + line.replace(/ *$/g, '') + closeWith + trailingSpaces);
- } else {
- blocks.push(openWith + line + closeWith);
- }
- }
-
- block = blocks.join("\n");
- }
-
- block = openBlockWith + block + closeBlockWith;
-
- return { block:block,
- openWith:openWith,
- replaceWith:replaceWith,
- placeHolder:placeHolder,
- closeWith:closeWith
- };
- }
-
- // define markup to insert
- function markup(button) {
- var len, j, n, i;
- hash = clicked = button;
- get();
- $.extend(hash, { line:"",
- root:options.root,
- textarea:textarea,
- selection:(selection||''),
- caretPosition:caretPosition,
- ctrlKey:ctrlKey,
- shiftKey:shiftKey,
- altKey:altKey
- }
- );
- // callbacks before insertion
- prepare(options.beforeInsert);
- prepare(clicked.beforeInsert);
- if ((ctrlKey === true && shiftKey === true) || button.multiline === true) {
- prepare(clicked.beforeMultiInsert);
- }
- $.extend(hash, { line:1 });
-
- if ((ctrlKey === true && shiftKey === true)) {
- lines = selection.split(/\r?\n/);
- for (j = 0, n = lines.length, i = 0; i < n; i++) {
- if ($.trim(lines[i]) !== '') {
- $.extend(hash, { line:++j, selection:lines[i] } );
- lines[i] = build(lines[i]).block;
- } else {
- lines[i] = "";
- }
- }
- string = { block:lines.join('\n')};
- start = caretPosition;
- len = string.block.length + (($.browser.opera) ? n-1 : 0);
- } else if (ctrlKey === true) {
- string = build(selection);
- start = caretPosition + string.openWith.length;
- len = string.block.length - string.openWith.length - string.closeWith.length;
- len = len - (string.block.match(/ $/) ? 1 : 0);
- len -= fixIeBug(string.block);
- } else if (shiftKey === true) {
- string = build(selection);
- start = caretPosition;
- len = string.block.length;
- len -= fixIeBug(string.block);
- } else {
- string = build(selection);
- start = caretPosition + string.block.length ;
- len = 0;
- start -= fixIeBug(string.block);
- }
- if ((selection === '' && string.replaceWith === '')) {
- caretOffset += fixOperaBug(string.block);
-
- start = caretPosition + string.openWith.length;
- len = string.block.length - string.openWith.length - string.closeWith.length;
-
- caretOffset = $$.val().substring(caretPosition, $$.val().length).length;
- caretOffset -= fixOperaBug($$.val().substring(0, caretPosition));
- }
- $.extend(hash, { caretPosition:caretPosition, scrollPosition:scrollPosition } );
-
- if (string.block !== selection && abort === false) {
- insert(string.block);
- set(start, len);
- } else {
- caretOffset = -1;
- }
- get();
-
- $.extend(hash, { line:'', selection:selection });
-
- // callbacks after insertion
- if ((ctrlKey === true && shiftKey === true) || button.multiline === true) {
- prepare(clicked.afterMultiInsert);
- }
- prepare(clicked.afterInsert);
- prepare(options.afterInsert);
-
- // refresh preview if opened
- if (previewWindow && options.previewAutoRefresh) {
- refreshPreview();
- }
-
- // reinit keyevent
- shiftKey = altKey = ctrlKey = abort = false;
- }
-
- // Substract linefeed in Opera
- function fixOperaBug(string) {
- if ($.browser.opera) {
- return string.length - string.replace(/\n*/g, '').length;
- }
- return 0;
- }
- // Substract linefeed in IE
- function fixIeBug(string) {
- if ($.browser.msie) {
- return string.length - string.replace(/\r*/g, '').length;
- }
- return 0;
- }
-
- // add markup
- function insert(block) {
- if (document.selection) {
- var newSelection = document.selection.createRange();
- newSelection.text = block;
- } else {
- textarea.value = textarea.value.substring(0, caretPosition) + block + textarea.value.substring(caretPosition + selection.length, textarea.value.length);
- }
- }
-
- // set a selection
- function set(start, len) {
- if (textarea.createTextRange){
- // quick fix to make it work on Opera 9.5
- if ($.browser.opera && $.browser.version >= 9.5 && len == 0) {
- return false;
- }
- range = textarea.createTextRange();
- range.collapse(true);
- range.moveStart('character', start);
- range.moveEnd('character', len);
- range.select();
- } else if (textarea.setSelectionRange ){
- textarea.setSelectionRange(start, start + len);
- }
- textarea.scrollTop = scrollPosition;
- textarea.focus();
- }
-
- // get the selection
- function get() {
- textarea.focus();
-
- scrollPosition = textarea.scrollTop;
- if (document.selection) {
- selection = document.selection.createRange().text;
- if ($.browser.msie) { // ie
- var range = document.selection.createRange(), rangeCopy = range.duplicate();
- rangeCopy.moveToElementText(textarea);
- caretPosition = -1;
- while(rangeCopy.inRange(range)) {
- rangeCopy.moveStart('character');
- caretPosition ++;
- }
- } else { // opera
- caretPosition = textarea.selectionStart;
- }
- } else { // gecko & webkit
- caretPosition = textarea.selectionStart;
-
- selection = textarea.value.substring(caretPosition, textarea.selectionEnd);
- }
- return selection;
- }
-
- // open preview window
- function preview() {
- if (!previewWindow || previewWindow.closed) {
- if (options.previewInWindow) {
- previewWindow = window.open('', 'preview', options.previewInWindow);
- $(window).unload(function() {
- previewWindow.close();
- });
- } else {
- iFrame = $('');
- if (options.previewPosition == 'after') {
- iFrame.insertAfter(footer);
- } else {
- iFrame.insertBefore(header);
- }
- previewWindow = iFrame[iFrame.length - 1].contentWindow || frame[iFrame.length - 1];
- }
- } else if (altKey === true) {
- if (iFrame) {
- iFrame.remove();
- } else {
- previewWindow.close();
- }
- previewWindow = iFrame = false;
- }
- if (!options.previewAutoRefresh) {
- refreshPreview();
- }
- if (options.previewInWindow) {
- previewWindow.focus();
- }
- }
-
- // refresh Preview window
- function refreshPreview() {
- renderPreview();
- }
-
- function renderPreview() {
- var phtml;
- if (options.previewParser && typeof options.previewParser === 'function') {
- var data = options.previewParser( $$.val() );
- writeInPreview( localize(data, 1) );
- } else if (options.previewParserPath !== '') {
- $.ajax({
- type: 'POST',
- dataType: 'text',
- global: false,
- url: options.previewParserPath,
- data: options.previewParserVar+'='+encodeURIComponent($$.val()),
- success: function(data) {
- writeInPreview( localize(data, 1) );
- }
- });
- } else {
- if (!template) {
- $.ajax({
- url: options.previewTemplatePath,
- dataType: 'text',
- global: false,
- success: function(data) {
- writeInPreview( localize(data, 1).replace(//g, $$.val()) );
- }
- });
- }
- }
- return false;
- }
-
- function writeInPreview(data) {
- if (previewWindow.document) {
- try {
- sp = previewWindow.document.documentElement.scrollTop
- } catch(e) {
- sp = 0;
- }
- previewWindow.document.open();
- previewWindow.document.write(data);
- previewWindow.document.close();
- previewWindow.document.documentElement.scrollTop = sp;
- }
- }
-
- // set keys pressed
- function keyPressed(e) {
- shiftKey = e.shiftKey;
- altKey = e.altKey;
- ctrlKey = (!(e.altKey && e.ctrlKey)) ? (e.ctrlKey || e.metaKey) : false;
-
- if (e.type === 'keydown') {
- if (ctrlKey === true) {
- li = $('a[accesskey="'+String.fromCharCode(e.keyCode)+'"]', header).parent('li');
- if (li.length !== 0) {
- ctrlKey = false;
- setTimeout(function() {
- li.triggerHandler('mouseup');
- },1);
- return false;
- }
- }
- if (e.keyCode === 13 || e.keyCode === 10) { // Enter key
- if (ctrlKey === true) { // Enter + Ctrl
- ctrlKey = false;
- markup(options.onCtrlEnter);
- return options.onCtrlEnter.keepDefault;
- } else if (shiftKey === true) { // Enter + Shift
- shiftKey = false;
- markup(options.onShiftEnter);
- return options.onShiftEnter.keepDefault;
- } else { // only Enter
- markup(options.onEnter);
- return options.onEnter.keepDefault;
- }
- }
- if (e.keyCode === 9) { // Tab key
- if (shiftKey == true || ctrlKey == true || altKey == true) {
- return false;
- }
- if (caretOffset !== -1) {
- get();
- caretOffset = $$.val().length - caretOffset;
- set(caretOffset, 0);
- caretOffset = -1;
- return false;
- } else {
- markup(options.onTab);
- return options.onTab.keepDefault;
- }
- }
- }
- }
-
- init();
- });
- };
-
- $.fn.markItUpRemove = function() {
- return this.each(function() {
- var $$ = $(this).unbind().removeClass('markItUpEditor');
- $$.parent('div').parent('div.markItUp').parent('div').replaceWith($$);
- }
- );
- };
-
- $.markItUp = function(settings) {
- var options = { target:false };
- $.extend(options, settings);
- if (options.target) {
- return $(options.target).each(function() {
- $(this).focus();
- $(this).trigger('insertion', [options]);
- });
- } else {
- $('textarea').trigger('insertion', [options]);
- }
- };
-})(jQuery);
diff --git a/src/bb-themes/admin_default/js/markitup/sets/default/images/bold.png b/src/bb-themes/admin_default/js/markitup/sets/default/images/bold.png
deleted file mode 100755
index 889ae80e3..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/default/images/bold.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/default/images/clean.png b/src/bb-themes/admin_default/js/markitup/sets/default/images/clean.png
deleted file mode 100755
index 7e7cefb8e..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/default/images/clean.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/default/images/image.png b/src/bb-themes/admin_default/js/markitup/sets/default/images/image.png
deleted file mode 100755
index fc3c393ca..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/default/images/image.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/default/images/italic.png b/src/bb-themes/admin_default/js/markitup/sets/default/images/italic.png
deleted file mode 100755
index 8482ac8cb..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/default/images/italic.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/default/images/link.png b/src/bb-themes/admin_default/js/markitup/sets/default/images/link.png
deleted file mode 100755
index 25eacb7c2..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/default/images/link.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/default/images/list-bullet.png b/src/bb-themes/admin_default/js/markitup/sets/default/images/list-bullet.png
deleted file mode 100755
index 4a8672bde..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/default/images/list-bullet.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/default/images/list-numeric.png b/src/bb-themes/admin_default/js/markitup/sets/default/images/list-numeric.png
deleted file mode 100755
index 33b0b8df3..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/default/images/list-numeric.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/default/images/picture.png b/src/bb-themes/admin_default/js/markitup/sets/default/images/picture.png
deleted file mode 100755
index 4a158fef7..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/default/images/picture.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/default/images/preview.png b/src/bb-themes/admin_default/js/markitup/sets/default/images/preview.png
deleted file mode 100755
index a9925a06a..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/default/images/preview.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/default/images/stroke.png b/src/bb-themes/admin_default/js/markitup/sets/default/images/stroke.png
deleted file mode 100755
index 612058a78..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/default/images/stroke.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/default/set.js b/src/bb-themes/admin_default/js/markitup/sets/default/set.js
deleted file mode 100755
index b7fdf8182..000000000
--- a/src/bb-themes/admin_default/js/markitup/sets/default/set.js
+++ /dev/null
@@ -1,30 +0,0 @@
-// ----------------------------------------------------------------------------
-// markItUp!
-// ----------------------------------------------------------------------------
-// Copyright (C) 2011 Jay Salvat
-// http://markitup.jaysalvat.com/
-// ----------------------------------------------------------------------------
-// Html tags
-// http://en.wikipedia.org/wiki/html
-// ----------------------------------------------------------------------------
-// Basic set. Feel free to add more tags
-// ----------------------------------------------------------------------------
-var mySettings = {
- onShiftEnter: {keepDefault:false, replaceWith:' \n'},
- onCtrlEnter: {keepDefault:false, openWith:'\n', closeWith:'
'},
- onTab: {keepDefault:false, replaceWith:' '},
- markupSet: [
- {name:'Bold', key:'B', openWith:'(!(|!|)!)', closeWith:'(!( |!|)!)' },
- {name:'Italic', key:'I', openWith:'(!(|!|)!)', closeWith:'(!( |!|)!)' },
- {name:'Stroke through', key:'S', openWith:'', closeWith:'' },
- {separator:'---------------' },
- {name:'Bulleted List', openWith:' ', closeWith:' ', multiline:true, openBlockWith:''},
- {name:'Numeric List', openWith:' ', closeWith:' ', multiline:true, openBlockWith:'\n', closeBlockWith:'\n '},
- {separator:'---------------' },
- {name:'Picture', key:'P', replaceWith:' ' },
- {name:'Link', key:'L', openWith:'', closeWith:' ', placeHolder:'Your text to link...' },
- {separator:'---------------' },
- {name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } },
- {name:'Preview', className:'preview', call:'preview'}
- ]
-}
diff --git a/src/bb-themes/admin_default/js/markitup/sets/default/style.css b/src/bb-themes/admin_default/js/markitup/sets/default/style.css
deleted file mode 100755
index 336b60eb0..000000000
--- a/src/bb-themes/admin_default/js/markitup/sets/default/style.css
+++ /dev/null
@@ -1,34 +0,0 @@
-/* -------------------------------------------------------------------
-// markItUp!
-// By Jay Salvat - http://markitup.jaysalvat.com/
-// ------------------------------------------------------------------*/
-.markItUp .markItUpButton1 a {
- background-image:url(images/bold.png);
-}
-.markItUp .markItUpButton2 a {
- background-image:url(images/italic.png);
-}
-.markItUp .markItUpButton3 a {
- background-image:url(images/stroke.png);
-}
-
-.markItUp .markItUpButton4 a {
- background-image:url(images/list-bullet.png);
-}
-.markItUp .markItUpButton5 a {
- background-image:url(images/list-numeric.png);
-}
-
-.markItUp .markItUpButton6 a {
- background-image:url(images/picture.png);
-}
-.markItUp .markItUpButton7 a {
- background-image:url(images/link.png);
-}
-
-.markItUp .markItUpButton8 a {
- background-image:url(images/clean.png);
-}
-.markItUp .preview a {
- background-image:url(images/preview.png);
-}
diff --git a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/bold.png b/src/bb-themes/admin_default/js/markitup/sets/markdown/images/bold.png
deleted file mode 100755
index 889ae80e3..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/bold.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/code.png b/src/bb-themes/admin_default/js/markitup/sets/markdown/images/code.png
deleted file mode 100755
index 63fe6ceff..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/code.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/h1.png b/src/bb-themes/admin_default/js/markitup/sets/markdown/images/h1.png
deleted file mode 100755
index 9c122e91e..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/h1.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/h2.png b/src/bb-themes/admin_default/js/markitup/sets/markdown/images/h2.png
deleted file mode 100755
index fbd87657f..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/h2.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/h3.png b/src/bb-themes/admin_default/js/markitup/sets/markdown/images/h3.png
deleted file mode 100755
index c7836cf09..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/h3.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/h4.png b/src/bb-themes/admin_default/js/markitup/sets/markdown/images/h4.png
deleted file mode 100755
index 4e929eaf5..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/h4.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/h5.png b/src/bb-themes/admin_default/js/markitup/sets/markdown/images/h5.png
deleted file mode 100755
index 30cabebf7..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/h5.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/h6.png b/src/bb-themes/admin_default/js/markitup/sets/markdown/images/h6.png
deleted file mode 100755
index 058170a20..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/h6.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/italic.png b/src/bb-themes/admin_default/js/markitup/sets/markdown/images/italic.png
deleted file mode 100755
index 8482ac8cb..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/italic.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/link.png b/src/bb-themes/admin_default/js/markitup/sets/markdown/images/link.png
deleted file mode 100755
index 25eacb7c2..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/link.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/list-bullet.png b/src/bb-themes/admin_default/js/markitup/sets/markdown/images/list-bullet.png
deleted file mode 100755
index 4a8672bde..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/list-bullet.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/list-numeric.png b/src/bb-themes/admin_default/js/markitup/sets/markdown/images/list-numeric.png
deleted file mode 100755
index 33b0b8df3..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/list-numeric.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/picture.png b/src/bb-themes/admin_default/js/markitup/sets/markdown/images/picture.png
deleted file mode 100755
index 4a158fef7..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/picture.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/preview.png b/src/bb-themes/admin_default/js/markitup/sets/markdown/images/preview.png
deleted file mode 100644
index 564a1a971..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/preview.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/quotes.png b/src/bb-themes/admin_default/js/markitup/sets/markdown/images/quotes.png
deleted file mode 100755
index e54ebebaf..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/sets/markdown/images/quotes.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/sets/markdown/set.js b/src/bb-themes/admin_default/js/markitup/sets/markdown/set.js
deleted file mode 100755
index c3d2cfba0..000000000
--- a/src/bb-themes/admin_default/js/markitup/sets/markdown/set.js
+++ /dev/null
@@ -1,65 +0,0 @@
-// -------------------------------------------------------------------
-// markItUp!
-// -------------------------------------------------------------------
-// Copyright (C) 2008 Jay Salvat
-// http://markitup.jaysalvat.com/
-// -------------------------------------------------------------------
-// MarkDown tags example
-// http://en.wikipedia.org/wiki/Markdown
-// http://daringfireball.net/projects/markdown/
-// -------------------------------------------------------------------
-// Feel free to add more tags
-// -------------------------------------------------------------------
-mySettings = {
- previewParser: function(content) {
- var r = '';
- $.ajax({
- url: $('meta[property="bb:client_area"]').attr("content") + 'preview/markdown',
- data: {content: content},
- type: "POST",
- success: function(data){ r = data; },
- async: false
- });
- return r;
- },
- //previewInWindow: 'width=800, height=600, resizable=yes, scrollbars=yes',
- previewAutoRefresh: false,
- previewParserPath: '',
- onShiftEnter: {keepDefault:false, openWith:'\n\n'},
- markupSet: [
- {name:'First Level Heading', key:'1', placeHolder:'Your title here...', closeWith:function(markItUp) {return miu.markdownTitle(markItUp, '=')}},
- {name:'Second Level Heading', key:'2', placeHolder:'Your title here...', closeWith:function(markItUp) {return miu.markdownTitle(markItUp, '-')}},
- {name:'Heading 3', key:'3', openWith:'### ', placeHolder:'Your title here...'},
- {name:'Heading 4', key:'4', openWith:'#### ', placeHolder:'Your title here...'},
- {name:'Heading 5', key:'5', openWith:'##### ', placeHolder:'Your title here...'},
- {name:'Heading 6', key:'6', openWith:'###### ', placeHolder:'Your title here...'},
- {separator:'---------------'},
- {name:'Bold', key:'B', openWith:'**', closeWith:'**'},
- {name:'Italic', key:'I', openWith:'_', closeWith:'_'},
- {separator:'---------------'},
- {name:'Bulleted List', openWith:'- '},
- {name:'Numeric List', openWith:function(markItUp) {
- return markItUp.line+'. ';
- }},
- {separator:'---------------'},
- {name:'Picture', key:'P', replaceWith:'![[![Alternative text]!]]([![Url:!:http://]!] "[![Title]!]")'},
- {name:'Link', key:'L', openWith:'[', closeWith:']([![Url:!:http://]!] "[![Title]!]")', placeHolder:'Your text to link here...'},
- {separator:'---------------'},
- {name:'Quotes', openWith:'> '},
- {name:'Code Block / Code', openWith:'(!(\t|!|`)!)', closeWith:'(!(`)!)'},
- {separator:'---------------'},
- {name:'Preview', call:'preview', className:"preview"}
- ]
-}
-
-// mIu nameSpace to avoid conflict.
-miu = {
- markdownTitle: function(markItUp, chr) {
- heading = '';
- n = $.trim(markItUp.selection||markItUp.placeHolder).length;
- for(i = 0; i < n; i++) {
- heading += chr;
- }
- return '\n'+heading;
- }
-}
\ No newline at end of file
diff --git a/src/bb-themes/admin_default/js/markitup/sets/markdown/style.css b/src/bb-themes/admin_default/js/markitup/sets/markdown/style.css
deleted file mode 100755
index 03c3aea44..000000000
--- a/src/bb-themes/admin_default/js/markitup/sets/markdown/style.css
+++ /dev/null
@@ -1,54 +0,0 @@
-/* -------------------------------------------------------------------
-// markItUp!
-// By Jay Salvat - http://markitup.jaysalvat.com/
-// ------------------------------------------------------------------*/
-.markItUp .markItUpButton1 a {
- background-image:url(images/h1.png);
-}
-.markItUp .markItUpButton2 a {
- background-image:url(images/h2.png);
-}
-.markItUp .markItUpButton3 a {
- background-image:url(images/h3.png);
-}
-.markItUp .markItUpButton4 a {
- background-image:url(images/h4.png);
-}
-.markItUp .markItUpButton5 a {
- background-image:url(images/h5.png);
-}
-.markItUp .markItUpButton6 a {
- background-image:url(images/h6.png);
-}
-
-.markItUp .markItUpButton7 a {
- background-image:url(images/bold.png);
-}
-.markItUp .markItUpButton8 a {
- background-image:url(images/italic.png);
-}
-
-.markItUp .markItUpButton9 a {
- background-image:url(images/list-bullet.png);
-}
-.markItUp .markItUpButton10 a {
- background-image:url(images/list-numeric.png);
-}
-
-.markItUp .markItUpButton11 a {
- background-image:url(images/picture.png);
-}
-.markItUp .markItUpButton12 a {
- background-image:url(images/link.png);
-}
-
-.markItUp .markItUpButton13 a {
- background-image:url(images/quotes.png);
-}
-.markItUp .markItUpButton14 a {
- background-image:url(images/code.png);
-}
-
-.markItUp .preview a {
- background-image:url(images/preview.png);
-}
\ No newline at end of file
diff --git a/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/bg-container.png b/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/bg-container.png
deleted file mode 100755
index ec38b8e18..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/bg-container.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/bg-editor-bbcode.png b/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/bg-editor-bbcode.png
deleted file mode 100755
index 39cdbd832..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/bg-editor-bbcode.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/bg-editor-dotclear.png b/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/bg-editor-dotclear.png
deleted file mode 100755
index b3188dcd5..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/bg-editor-dotclear.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/bg-editor-html.png b/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/bg-editor-html.png
deleted file mode 100755
index 11bff4568..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/bg-editor-html.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/bg-editor-markdown.png b/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/bg-editor-markdown.png
deleted file mode 100755
index c19971522..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/bg-editor-markdown.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/bg-editor.png b/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/bg-editor.png
deleted file mode 100755
index ab7cde485..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/bg-editor.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/handle.png b/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/handle.png
deleted file mode 100755
index 3993b2033..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/handle.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/menu.png b/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/menu.png
deleted file mode 100755
index de337c88c..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/menu.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/submenu.png b/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/submenu.png
deleted file mode 100755
index 03d1977ae..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/skins/boxbilling/images/submenu.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/skins/boxbilling/style.css b/src/bb-themes/admin_default/js/markitup/skins/boxbilling/style.css
deleted file mode 100755
index 32bc7a951..000000000
--- a/src/bb-themes/admin_default/js/markitup/skins/boxbilling/style.css
+++ /dev/null
@@ -1,148 +0,0 @@
-/* -------------------------------------------------------------------
-// markItUp! Universal MarkUp Engine, JQuery plugin
-// By Jay Salvat - http://markitup.jaysalvat.com/
-// ------------------------------------------------------------------*/
-.markItUp * {
- margin:0px; padding:0px;
- outline:none;
-}
-.markItUp {
- margin-bottom: 10px;
-}
-.markItUp a:link,
-.markItUp a:visited {
- color:#000;
- text-decoration:none;
-}
-.markItUpContainer textarea {
- width: 100%;
-}
-.markItUpContainer {
- background:#FFF url(images/bg-container.png) repeat-x top left;
- padding:5px 5px 2px 5px;
- font:11px Verdana, Arial, Helvetica, sans-serif;
- min-width: 435px;
-}
-.markItUpEditor {
- font:12px 'Courier New', Courier, monospace;
- padding:5px 5px 5px 35px;
- border:3px solid #3C769D;
- width:643px;
- height:320px;
- background:#FFF url(images/bg-editor.png) no-repeat;
- clear:both;
- line-height:18px;
- overflow:auto;
-}
-.markItUpPreviewFrame {
- overflow:auto;
- background-color:#FFFFFF;
- border:1px solid #3C4049;
- width:99.9%;
- height:300px;
- margin:5px 0;
-}
-.markItUpFooter {
- width:100%;
- cursor:n-resize;
-}
-.markItUpResizeHandle {
- overflow:hidden;
- width:22px; height:5px;
- margin-left:auto;
- margin-right:auto;
- background-image:url(images/handle.png);
- cursor:n-resize;
-}
-/***************************************************************************************/
-/* first row of buttons */
-.markItUpHeader ul li {
- list-style:none;
- float:left;
- position:relative;
-}
-.markItUpHeader ul li ul{
- display:none;
-}
-.markItUpHeader ul li:hover > ul{
- display:block;
-}
-.markItUpHeader ul .markItUpDropMenu {
- background:transparent url(images/menu.png) no-repeat 115% 50%;
- margin-right:5px;
-}
-.markItUpHeader ul .markItUpDropMenu li {
- margin-right:0px;
-}
-.markItUpHeader ul .markItUpSeparator {
- margin:0 10px;
- width:1px;
- height:16px;
- overflow:hidden;
- background-color:#CCC;
-}
-.markItUpHeader ul ul .markItUpSeparator {
- width:auto; height:1px;
- margin:0px;
-}
-/* next rows of buttons */
-.markItUpHeader ul ul {
- display:none;
- position:absolute;
- top:18px; left:0px;
- background:#F5F5F5;
- border:1px solid #3C769D;
- height:inherit;
-}
-.markItUpHeader ul ul li {
- float:none;
- border-bottom:1px solid #3C769D;
-}
-.markItUpHeader ul ul .markItUpDropMenu {
- background:#F5F5F5 url(images/submenu.png) no-repeat 100% 50%;
-}
-/* next rows of buttons */
-.markItUpHeader ul ul ul {
- position:absolute;
- top:-1px; left:150px;
-}
-.markItUpHeader ul ul ul li {
- float:none;
-}
-.markItUpHeader ul a {
- display:block;
- width:16px; height:16px;
- text-indent:-10000px;
- background-repeat:no-repeat;
- padding:3px;
- margin:0px;
-}
-.markItUpHeader ul ul a {
- display:block;
- padding-left:0px;
- text-indent:0;
- width:120px;
- padding:5px 5px 5px 25px;
- background-position:2px 50%;
-}
-.markItUpHeader ul ul a:hover {
- color:#FFF;
- background-color:#3C769D;
-}
-/***************************************************************************************/
-.html .markItUpEditor {
- background-image:url(images/bg-editor-html.png);
-}
-.markdown .markItUpEditor {
- background-image:url(images/bg-editor-markdown.png);
-}
-.textile .markItUpEditor {
- background-image:url(images/bg-editor-textile.png);
-}
-.bbcode .markItUpEditor {
- background-image:url(images/bg-editor-bbcode.png);
-}
-.wiki .markItUpEditor,
-.dotclear .markItUpEditor {
- background-image:url(images/bg-editor-wiki.png);
-}
\ No newline at end of file
diff --git a/src/bb-themes/admin_default/js/markitup/skins/simple/images/handle.png b/src/bb-themes/admin_default/js/markitup/skins/simple/images/handle.png
deleted file mode 100755
index 3993b2033..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/skins/simple/images/handle.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/skins/simple/images/menu.png b/src/bb-themes/admin_default/js/markitup/skins/simple/images/menu.png
deleted file mode 100755
index 44a07afd3..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/skins/simple/images/menu.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/skins/simple/images/submenu.png b/src/bb-themes/admin_default/js/markitup/skins/simple/images/submenu.png
deleted file mode 100755
index 03d1977ae..000000000
Binary files a/src/bb-themes/admin_default/js/markitup/skins/simple/images/submenu.png and /dev/null differ
diff --git a/src/bb-themes/admin_default/js/markitup/skins/simple/style.css b/src/bb-themes/admin_default/js/markitup/skins/simple/style.css
deleted file mode 100755
index fe3753c02..000000000
--- a/src/bb-themes/admin_default/js/markitup/skins/simple/style.css
+++ /dev/null
@@ -1,118 +0,0 @@
-/* -------------------------------------------------------------------
-// markItUp! Universal MarkUp Engine, JQuery plugin
-// By Jay Salvat - http://markitup.jaysalvat.com/
-// ------------------------------------------------------------------*/
-.markItUp * {
- margin:0px; padding:0px;
- outline:none;
-}
-.markItUp a:link,
-.markItUp a:visited {
- color:#000;
- text-decoration:none;
-}
-.markItUp {
- width:700px;
- margin:5px 0 5px 0;
-}
-.markItUpContainer {
- font:11px Verdana, Arial, Helvetica, sans-serif;
-}
-.markItUpEditor {
- font:12px 'Courier New', Courier, monospace;
- padding:5px;
- width:690px;
- height:320px;
- clear:both;
- line-height:18px;
- overflow:auto;
-}
-.markItUpPreviewFrame {
- overflow:auto;
- background-color:#FFF;
- width:99.9%;
- height:300px;
- margin:5px 0;
-}
-.markItUpFooter {
- width:100%;
-}
-.markItUpResizeHandle {
- overflow:hidden;
- width:22px; height:5px;
- margin-left:auto;
- margin-right:auto;
- background-image:url(images/handle.png);
- cursor:n-resize;
-}
-/***************************************************************************************/
-/* first row of buttons */
-.markItUpHeader ul li {
- list-style:none;
- float:left;
- position:relative;
-}
-.markItUpHeader ul li:hover > ul{
- display:block;
-}
-.markItUpHeader ul .markItUpDropMenu {
- background:transparent url(images/menu.png) no-repeat 115% 50%;
- margin-right:5px;
-}
-.markItUpHeader ul .markItUpDropMenu li {
- margin-right:0px;
-}
-/* next rows of buttons */
-.markItUpHeader ul ul {
- display:none;
- position:absolute;
- top:18px; left:0px;
- background:#FFF;
- border:1px solid #000;
-}
-.markItUpHeader ul ul li {
- float:none;
- border-bottom:1px solid #000;
-}
-.markItUpHeader ul ul .markItUpDropMenu {
- background:#FFF url(images/submenu.png) no-repeat 100% 50%;
-}
-.markItUpHeader ul .markItUpSeparator {
- margin:0 10px;
- width:1px;
- height:16px;
- overflow:hidden;
- background-color:#CCC;
-}
-.markItUpHeader ul ul .markItUpSeparator {
- width:auto; height:1px;
- margin:0px;
-}
-/* next rows of buttons */
-.markItUpHeader ul ul ul {
- position:absolute;
- top:-1px; left:150px;
-}
-.markItUpHeader ul ul ul li {
- float:none;
-}
-.markItUpHeader ul a {
- display:block;
- width:16px; height:16px;
- text-indent:-10000px;
- background-repeat:no-repeat;
- padding:3px;
- margin:0px;
-}
-.markItUpHeader ul ul a {
- display:block;
- padding-left:0px;
- text-indent:0;
- width:120px;
- padding:5px 5px 5px 25px;
- background-position:2px 50%;
-}
-.markItUpHeader ul ul a:hover {
- color:#FFF;
- background-color:#000;
-}
diff --git a/src/bb-themes/admin_default/js/markitup/templates/preview.css b/src/bb-themes/admin_default/js/markitup/templates/preview.css
deleted file mode 100755
index ad91a871c..000000000
--- a/src/bb-themes/admin_default/js/markitup/templates/preview.css
+++ /dev/null
@@ -1,5 +0,0 @@
-/* preview style examples */
-body {
- background-color:#EFEFEF;
- font:70% Verdana, Arial, Helvetica, sans-serif;
-}
\ No newline at end of file
diff --git a/src/bb-themes/admin_default/js/markitup/templates/preview.html b/src/bb-themes/admin_default/js/markitup/templates/preview.html
deleted file mode 100755
index 6dcf3782e..000000000
--- a/src/bb-themes/admin_default/js/markitup/templates/preview.html
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-Markdown preview
-
-
-
-
-
-