You are here

bbcode.bueditor.txt in BUEditor 6.2

Same filename and directory in other branches
  1. 7 import/bbcode.bueditor.txt
array (
  'name' => 'BBCode',
  'pages' => 'node/*
comment/*',
  'excludes' => 'edit-log',
  'iconpath' => '%BUEDITOR/icons',
  'spriteon' => '1',
  'buttons' => 
  array (
    0 => 
    array (
      'title' => 'Insert/edit image',
      'content' => 'js:
var S = E.getSelection();
var M = S.match(new RegExp(\'^\\\\[img(?:=(\\\\d+)x(\\\\d+))?](.+)\\\\[/img]$\')) || [\'\', \'\', \'\', \'\'];
var form = [
 {name: \'src\', title: \'Image URL\', value: M[3], suffix: E.imce.button(\'attr_src\'), required: true},
 {name: \'width\', title: \'Width x Height\', value: M[1], suffix: \' x \', attributes: {size: 3}, getnext: true},
 {name: \'height\', value: M[2], attributes: {size: 3}}
];
var opt = {title: \'Insert/edit image\'};
opt.submit = function(tag, form) {
  var el = form.elements;
  var src = el[\'attr_src\'].value;
  var w = el[\'attr_width\'].value;
  var h = el[\'attr_height\'].value;
  E.replaceSelection(\'[img\'+ (w*1 ? (\'=\'+ w +\'x\'+ h) : \'\') +\']\'+ src +\'[/img]\');
};
E.tagDialog(\'img\', form, opt);',
      'icon' => 'image.png',
      'accesskey' => 'M',
      'weight' => '0',
    ),
    1 => 
    array (
      'title' => 'Insert/edit link',
      'content' => 'js:
var S = E.getSelection();
var M = S.match(new RegExp(\'^\\\\[url(?:=([^\\\\]]*))?]((?:.|[\\r\\n])*)\\\\[/url]$\')) || [\'\', \'\', \'\'];
var form = [
 {name: \'href\', title: \'URL\', value: M[1] || M[2], suffix: E.imce.button(\'attr_href\'), required: true},
 {name: \'text\', value: M[1] ? M[2] : (M[0] ? \'\' : S)}
];
var opt = {title: \'Insert/edit link\'};
opt.submit = function(tag, form) {
  var el = form.elements;
  var url = el[\'attr_href\'].value;
  var txt = el[\'attr_text\'].value;
  E.replaceSelection(\'[url\'+ (txt ? (\'=\'+ url) : \'\') +\']\'+ (txt || url) +\'[/url]\');
};
E.tagDialog(\'a\', form, opt);',
      'icon' => 'link.png',
      'accesskey' => 'L',
      'weight' => '1',
    ),
    2 => 
    array (
      'title' => 'tpl:dot',
      'content' => '',
      'icon' => 'dot.png',
      'accesskey' => '',
      'weight' => '2',
    ),
    3 => 
    array (
      'title' => 'Bold',
      'content' => '[b]%TEXT%[/b]',
      'icon' => 'bold.png',
      'accesskey' => 'B',
      'weight' => '3',
    ),
    4 => 
    array (
      'title' => 'Italic',
      'content' => '[i]%TEXT%[/i]',
      'icon' => 'italic.png',
      'accesskey' => 'I',
      'weight' => '4',
    ),
    5 => 
    array (
      'title' => 'Underline',
      'content' => '[u]%TEXT%[/u]',
      'icon' => 'underline.png',
      'accesskey' => 'U',
      'weight' => '5',
    ),
    6 => 
    array (
      'title' => 'Strikethrough',
      'content' => '[s]%TEXT%[/s]',
      'icon' => 'strike.png',
      'accesskey' => 'S',
      'weight' => '6',
    ),
    7 => 
    array (
      'title' => 'tpl:dot',
      'content' => '',
      'icon' => 'dot.png',
      'accesskey' => '',
      'weight' => '7',
    ),
    8 => 
    array (
      'title' => 'Ordered list. Converts selected lines to a numbered list.',
      'content' => 'js: E.wrapLines(\'[list=1]\\n\', \'  [*]\', \'\', \'\\n[/list]\');',
      'icon' => 'ol.png',
      'accesskey' => 'O',
      'weight' => '8',
    ),
    9 => 
    array (
      'title' => 'Unordered list. Converts selected lines to a bulleted list.',
      'content' => 'js: E.wrapLines(\'[list]\\n\', \'  [*]\', \'\', \'\\n[/list]\');',
      'icon' => 'ul.png',
      'accesskey' => 'N',
      'weight' => '9',
    ),
    10 => 
    array (
      'title' => 'tpl:dot',
      'content' => '',
      'icon' => 'dot.png',
      'accesskey' => '',
      'weight' => '10',
    ),
    11 => 
    array (
      'title' => 'Headings',
      'content' => 'js:
var tags = [[\'h1\', \'Heading1\'], [\'h2\', \'Heading2\'], [\'h3\', \'Heading3\'], [\'h4\', \'Heading4\'], [\'h5\', \'Heading5\'], [\'h6\', \'Heading6\']];
E.tagChooser(tags);
$(\'a.choice-link\', E.quickPop).unbind(\'click\').each(function(i, a) {
  $(a).click(function() {
    E.tagSelection(\'[\'+ tags[i][0] +\']\', \'[/\'+ tags[i][0] +\']\').focus();
    return false;
  });
});',
      'icon' => 'headers.png',
      'accesskey' => 'H',
      'weight' => '11',
    ),
    12 => 
    array (
      'title' => 'Quote',
      'content' => '[quote]%TEXT%[/quote]',
      'icon' => 'quote.png',
      'accesskey' => 'Q',
      'weight' => '12',
    ),
    13 => 
    array (
      'title' => 'Code',
      'content' => '[code]%TEXT%[/code]',
      'icon' => 'code.png',
      'accesskey' => 'D',
      'weight' => '13',
    ),
    14 => 
    array (
      'title' => 'tpl:dot',
      'content' => '',
      'icon' => 'dot.png',
      'accesskey' => '',
      'weight' => '14',
    ),
    15 => 
    array (
      'title' => 'Teaser break',
      'content' => '<!--break-->',
      'icon' => 'teaserbr.png',
      'accesskey' => 'T',
      'weight' => '15',
    ),
    16 => 
    array (
      'title' => 'Preview',
      'content' => 'js: E.prvAjax();',
      'icon' => 'preview.png',
      'accesskey' => 'P',
      'weight' => '16',
    ),
    17 => 
    array (
      'title' => 'Help',
      'content' => 'js: E.help(\'fadeIn\');',
      'icon' => 'help.png',
      'accesskey' => '1',
      'weight' => '17',
    ),
  ),
  'icons' => 
  array (
  ),
  'library' => 
  array (
    '%BUEDITOR/library/bue.min.default.js' => '',
  ),
)

File

import/bbcode.bueditor.txt
View source
  1. array (
  2. 'name' => 'BBCode',
  3. 'pages' => 'node/*
  4. comment/*',
  5. 'excludes' => 'edit-log',
  6. 'iconpath' => '%BUEDITOR/icons',
  7. 'spriteon' => '1',
  8. 'buttons' =>
  9. array (
  10. 0 =>
  11. array (
  12. 'title' => 'Insert/edit image',
  13. 'content' => 'js:
  14. var S = E.getSelection();
  15. var M = S.match(new RegExp(\'^\\\\[img(?:=(\\\\d+)x(\\\\d+))?](.+)\\\\[/img]$\')) || [\'\', \'\', \'\', \'\'];
  16. var form = [
  17. {name: \'src\', title: \'Image URL\', value: M[3], suffix: E.imce.button(\'attr_src\'), required: true},
  18. {name: \'width\', title: \'Width x Height\', value: M[1], suffix: \' x \', attributes: {size: 3}, getnext: true},
  19. {name: \'height\', value: M[2], attributes: {size: 3}}
  20. ];
  21. var opt = {title: \'Insert/edit image\'};
  22. opt.submit = function(tag, form) {
  23. var el = form.elements;
  24. var src = el[\'attr_src\'].value;
  25. var w = el[\'attr_width\'].value;
  26. var h = el[\'attr_height\'].value;
  27. E.replaceSelection(\'[img\'+ (w*1 ? (\'=\'+ w +\'x\'+ h) : \'\') +\']\'+ src +\'[/img]\');
  28. };
  29. E.tagDialog(\'img\', form, opt);',
  30. 'icon' => 'image.png',
  31. 'accesskey' => 'M',
  32. 'weight' => '0',
  33. ),
  34. 1 =>
  35. array (
  36. 'title' => 'Insert/edit link',
  37. 'content' => 'js:
  38. var S = E.getSelection();
  39. var M = S.match(new RegExp(\'^\\\\[url(?:=([^\\\\]]*))?]((?:.|[\\r\\n])*)\\\\[/url]$\')) || [\'\', \'\', \'\'];
  40. var form = [
  41. {name: \'href\', title: \'URL\', value: M[1] || M[2], suffix: E.imce.button(\'attr_href\'), required: true},
  42. {name: \'text\', value: M[1] ? M[2] : (M[0] ? \'\' : S)}
  43. ];
  44. var opt = {title: \'Insert/edit link\'};
  45. opt.submit = function(tag, form) {
  46. var el = form.elements;
  47. var url = el[\'attr_href\'].value;
  48. var txt = el[\'attr_text\'].value;
  49. E.replaceSelection(\'[url\'+ (txt ? (\'=\'+ url) : \'\') +\']\'+ (txt || url) +\'[/url]\');
  50. };
  51. E.tagDialog(\'a\', form, opt);',
  52. 'icon' => 'link.png',
  53. 'accesskey' => 'L',
  54. 'weight' => '1',
  55. ),
  56. 2 =>
  57. array (
  58. 'title' => 'tpl:dot',
  59. 'content' => '',
  60. 'icon' => 'dot.png',
  61. 'accesskey' => '',
  62. 'weight' => '2',
  63. ),
  64. 3 =>
  65. array (
  66. 'title' => 'Bold',
  67. 'content' => '[b]%TEXT%[/b]',
  68. 'icon' => 'bold.png',
  69. 'accesskey' => 'B',
  70. 'weight' => '3',
  71. ),
  72. 4 =>
  73. array (
  74. 'title' => 'Italic',
  75. 'content' => '[i]%TEXT%[/i]',
  76. 'icon' => 'italic.png',
  77. 'accesskey' => 'I',
  78. 'weight' => '4',
  79. ),
  80. 5 =>
  81. array (
  82. 'title' => 'Underline',
  83. 'content' => '[u]%TEXT%[/u]',
  84. 'icon' => 'underline.png',
  85. 'accesskey' => 'U',
  86. 'weight' => '5',
  87. ),
  88. 6 =>
  89. array (
  90. 'title' => 'Strikethrough',
  91. 'content' => '[s]%TEXT%[/s]',
  92. 'icon' => 'strike.png',
  93. 'accesskey' => 'S',
  94. 'weight' => '6',
  95. ),
  96. 7 =>
  97. array (
  98. 'title' => 'tpl:dot',
  99. 'content' => '',
  100. 'icon' => 'dot.png',
  101. 'accesskey' => '',
  102. 'weight' => '7',
  103. ),
  104. 8 =>
  105. array (
  106. 'title' => 'Ordered list. Converts selected lines to a numbered list.',
  107. 'content' => 'js: E.wrapLines(\'[list=1]\\n\', \' [*]\', \'\', \'\\n[/list]\');',
  108. 'icon' => 'ol.png',
  109. 'accesskey' => 'O',
  110. 'weight' => '8',
  111. ),
  112. 9 =>
  113. array (
  114. 'title' => 'Unordered list. Converts selected lines to a bulleted list.',
  115. 'content' => 'js: E.wrapLines(\'[list]\\n\', \' [*]\', \'\', \'\\n[/list]\');',
  116. 'icon' => 'ul.png',
  117. 'accesskey' => 'N',
  118. 'weight' => '9',
  119. ),
  120. 10 =>
  121. array (
  122. 'title' => 'tpl:dot',
  123. 'content' => '',
  124. 'icon' => 'dot.png',
  125. 'accesskey' => '',
  126. 'weight' => '10',
  127. ),
  128. 11 =>
  129. array (
  130. 'title' => 'Headings',
  131. 'content' => 'js:
  132. var tags = [[\'h1\', \'Heading1\'], [\'h2\', \'Heading2\'], [\'h3\', \'Heading3\'], [\'h4\', \'Heading4\'], [\'h5\', \'Heading5\'], [\'h6\', \'Heading6\']];
  133. E.tagChooser(tags);
  134. $(\'a.choice-link\', E.quickPop).unbind(\'click\').each(function(i, a) {
  135. $(a).click(function() {
  136. E.tagSelection(\'[\'+ tags[i][0] +\']\', \'[/\'+ tags[i][0] +\']\').focus();
  137. return false;
  138. });
  139. });',
  140. 'icon' => 'headers.png',
  141. 'accesskey' => 'H',
  142. 'weight' => '11',
  143. ),
  144. 12 =>
  145. array (
  146. 'title' => 'Quote',
  147. 'content' => '[quote]%TEXT%[/quote]',
  148. 'icon' => 'quote.png',
  149. 'accesskey' => 'Q',
  150. 'weight' => '12',
  151. ),
  152. 13 =>
  153. array (
  154. 'title' => 'Code',
  155. 'content' => '[code]%TEXT%[/code]',
  156. 'icon' => 'code.png',
  157. 'accesskey' => 'D',
  158. 'weight' => '13',
  159. ),
  160. 14 =>
  161. array (
  162. 'title' => 'tpl:dot',
  163. 'content' => '',
  164. 'icon' => 'dot.png',
  165. 'accesskey' => '',
  166. 'weight' => '14',
  167. ),
  168. 15 =>
  169. array (
  170. 'title' => 'Teaser break',
  171. 'content' => '',
  172. 'icon' => 'teaserbr.png',
  173. 'accesskey' => 'T',
  174. 'weight' => '15',
  175. ),
  176. 16 =>
  177. array (
  178. 'title' => 'Preview',
  179. 'content' => 'js: E.prvAjax();',
  180. 'icon' => 'preview.png',
  181. 'accesskey' => 'P',
  182. 'weight' => '16',
  183. ),
  184. 17 =>
  185. array (
  186. 'title' => 'Help',
  187. 'content' => 'js: E.help(\'fadeIn\');',
  188. 'icon' => 'help.png',
  189. 'accesskey' => '1',
  190. 'weight' => '17',
  191. ),
  192. ),
  193. 'icons' =>
  194. array (
  195. ),
  196. 'library' =>
  197. array (
  198. '%BUEDITOR/library/bue.min.default.js' => '',
  199. ),
  200. )