Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
add bbcode set
Browse files Browse the repository at this point in the history
  • Loading branch information
phlipper committed Jan 7, 2013
1 parent b22d726 commit 55ce068
Show file tree
Hide file tree
Showing 16 changed files with 86 additions and 0 deletions.
Binary file added vendor/assets/images/markitup/sets/bbcode/bold.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vendor/assets/images/markitup/sets/bbcode/clean.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vendor/assets/images/markitup/sets/bbcode/code.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vendor/assets/images/markitup/sets/bbcode/fonts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vendor/assets/images/markitup/sets/bbcode/italic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vendor/assets/images/markitup/sets/bbcode/link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vendor/assets/images/markitup/sets/bbcode/quotes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added vendor/assets/images/markitup/sets/bbcode/stroke.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions vendor/assets/javascripts/markitup/sets/bbcode/set.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// ----------------------------------------------------------------------------
// markItUp!
// ----------------------------------------------------------------------------
// Copyright (C) 2008 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
// BBCode tags example
// http://en.wikipedia.org/wiki/Bbcode
// ----------------------------------------------------------------------------
// Feel free to add more tags
// ----------------------------------------------------------------------------
mySettings = {
previewParserPath: "/markitup/preview", // path to your BBCode parser
markupSet: [
{name:'Bold', key:'B', openWith:'[b]', closeWith:'[/b]'},
{name:'Italic', key:'I', openWith:'[i]', closeWith:'[/i]'},
{name:'Underline', key:'U', openWith:'[u]', closeWith:'[/u]'},
{separator:'---------------' },
{name:'Picture', key:'P', replaceWith:'[img][![Url]!][/img]'},
{name:'Link', key:'L', openWith:'[url=[![Url]!]]', closeWith:'[/url]', placeHolder:'Your text to link here...'},
{separator:'---------------' },
{name:'Size', key:'S', openWith:'[size=[![Text size]!]]', closeWith:'[/size]',
dropMenu :[
{name:'Big', openWith:'[size=200]', closeWith:'[/size]' },
{name:'Normal', openWith:'[size=100]', closeWith:'[/size]' },
{name:'Small', openWith:'[size=50]', closeWith:'[/size]' }
]},
{separator:'---------------' },
{name:'Bulleted list', openWith:'[list]\n', closeWith:'\n[/list]'},
{name:'Numeric list', openWith:'[list=[![Starting number]!]]\n', closeWith:'\n[/list]'},
{name:'List item', openWith:'[*] '},
{separator:'---------------' },
{name:'Quotes', openWith:'[quote]', closeWith:'[/quote]'},
{name:'Code', openWith:'[code]', closeWith:'[/code]'},
{separator:'---------------' },
{name:'Clean', className:"clean", replaceWith:function(markitup) { return markitup.selection.replace(/\[(.*?)\]/g, "") } },
{name:'Preview', className:"preview", call:'preview' }
]
}
47 changes: 47 additions & 0 deletions vendor/assets/stylesheets/markitup/sets/bbcode/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/* -------------------------------------------------------------------
// markItUp!
// By Jay Salvat - http://markitup.jaysalvat.com/
// ------------------------------------------------------------------*/
.markItUp .markItUpButton1 a {
background-image: image-url("markitup/sets/bbcode/bold.png");
}
.markItUp .markItUpButton2 a {
background-image: image-url("markitup/sets/bbcode/italic.png");
}
.markItUp .markItUpButton3 a {
background-image: image-url("markitup/sets/bbcode/underline.png");
}

.markItUp .markItUpButton4 a {
background-image: image-url("markitup/sets/bbcode/picture.png");
}
.markItUp .markItUpButton5 a {
background-image: image-url("markitup/sets/bbcode/link.png");
}

.markItUp .markItUpButton6 a {
background-image: image-url("markitup/sets/bbcode/fonts.png");
}
.markItUp .markItUpButton7 a {
background-image: image-url("markitup/sets/bbcode/list-bullet.png");
}
.markItUp .markItUpButton8 a {
background-image: image-url("markitup/sets/bbcode/list-numeric.png");
}
.markItUp .markItUpButton9 a {
background-image: image-url("markitup/sets/bbcode/list-item.png");
}

.markItUp .markItUpButton10 a {
background-image: image-url("markitup/sets/bbcode/quotes.png");
}
.markItUp .markItUpButton11 a {
background-image: image-url("markitup/sets/bbcode/code.png");
}

.markItUp .clean a {
background-image: image-url("markitup/sets/bbcode/clean.png");
}
.markItUp .preview a {
background-image: image-url("markitup/sets/bbcode/preview.png");
}

0 comments on commit 55ce068

Please sign in to comment.