jquery - BB Code List Javascript -
i implimenting easy edit bb code script written jquery / javascript. problem it's not easy , need help.
the script works fine (adding stuff textarea). trying create presentation little better.
i appreciate if tell me how unlist items or @ to the lowest degree hide buttet points (probably using css) otherwise edit javascript/jquery.
also when scroll on alternative (for bold button) shows code button (as title) remove can't see on code i'd edit it.
here javascript code:
// ---------------------------------------------------------------------------- // markitup! // ---------------------------------------------------------------------------- // copyright (c) 2008 jay salvat // http://markitup.jaysalvat.com/ // ---------------------------------------------------------------------------- mybbcodesettings = { namespace: "bbcode", // useful prevent multi-instances css conflict previewparserpath: "~/sets/bbcode/preview.php", markupset: [ {name:"<img src='_img/bold_icon.gif'>", 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 link here...'}, {separator:'---------------' }, {name:'colors', openwith:'[color=[![color]!]]', closewith:'[/color]', dropmenu: [ {name:'yellow', openwith:'[color=yellow]', closewith:'[/color]', classname:"col1-1" }, {name:'orange', openwith:'[color=orange]', closewith:'[/color]', classname:"col1-2" }, {name:'red', openwith:'[color=red]', closewith:'[/color]', classname:"col1-3" }, {name:'blue', openwith:'[color=blue]', closewith:'[/color]', classname:"col2-1" }, {name:'purple', openwith:'[color=purple]', closewith:'[/color]', classname:"col2-2" }, {name:'green', openwith:'[color=green]', closewith:'[/color]', classname:"col2-3" }, {name:'white', openwith:'[color=white]', closewith:'[/color]', classname:"col3-1" }, {name:'gray', openwith:'[color=gray]', closewith:'[/color]', classname:"col3-2" }, {name:'black', openwith:'[color=black]', closewith:'[/color]', classname:"col3-3" } ]}, {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(h) { homecoming h.selection.replace(/\[(.*?)\]/g, "") } }, {name:'preview', classname:"preview", call:'preview' } ] }
thank help can give me! :)
using php parse , simple script add together in text.
javascript jquery bbcode
No comments:
Post a Comment