You are here

commenter.bueditor.txt in BUEditor 6.2

Same filename and directory in other branches
  1. 7 import/commenter.bueditor.txt
array (
  'name' => 'Commenter',
  'pages' => 'node/*
comment/*',
  'excludes' => 'edit-log',
  'iconpath' => '%BUEDITOR/icons',
  'spriteon' => '1',
  'buttons' => 
  array (
    0 => 
    array (
      'title' => 'Bold',
      'content' => '<strong>%TEXT%</strong>',
      'icon' => 'bold.png',
      'accesskey' => 'B',
      'weight' => '0',
    ),
    1 => 
    array (
      'title' => 'Italic',
      'content' => '<em>%TEXT%</em>',
      'icon' => 'italic.png',
      'accesskey' => 'I',
      'weight' => '1',
    ),
    2 => 
    array (
      'title' => 'tpl:dot',
      'content' => '',
      'icon' => 'dot.png',
      'accesskey' => '',
      'weight' => '2',
    ),
    3 => 
    array (
      'title' => 'Quote',
      'content' => '<blockquote>%TEXT%</blockquote>',
      'icon' => 'quote.png',
      'accesskey' => 'Q',
      'weight' => '3',
    ),
    4 => 
    array (
      'title' => 'Code',
      'content' => '<code>%TEXT%</code>',
      'icon' => 'code.png',
      'accesskey' => 'D',
      'weight' => '4',
    ),
    5 => 
    array (
      'title' => 'tpl:dot',
      'content' => '',
      'icon' => 'dot.png',
      'accesskey' => '',
      'weight' => '5',
    ),
    6 => 
    array (
      'title' => 'Number list',
      'content' => 'js:
var pos = E.replaceSelection(\'<ol>\\n  <li>\' + E.getSelection().replace(/\\r\\n?|\\n/g, \'</li>\\n  <li>\') + \'</li>\\n</ol>\').posSelection().end - 11;
E.makeSelection(pos, pos);',
      'icon' => 'ol.png',
      'accesskey' => 'O',
      'weight' => '6',
    ),
    7 => 
    array (
      'title' => 'Bullet list',
      'content' => 'js:
var pos = E.replaceSelection(\'<ul>\\n  <li>\' + E.getSelection().replace(/\\r\\n?|\\n/g, \'</li>\\n  <li>\') + \'</li>\\n</ul>\').posSelection().end - 11;
E.makeSelection(pos, pos);',
      'icon' => 'ul.png',
      'accesskey' => 'N',
      'weight' => '7',
    ),
    8 => 
    array (
      'title' => 'tpl:dot',
      'content' => '',
      'icon' => 'dot.png',
      'accesskey' => '',
      'weight' => '8',
    ),
    9 => 
    array (
      'title' => 'Insert link',
      'content' => 'js:
var url = prompt(\'Enter the link address\', \'http://www.example.com\');
url && E.tagSelection(\'<a href="\'+ url +\'">\', \'</a>\');',
      'icon' => 'link.png',
      'accesskey' => 'L',
      'weight' => '9',
    ),
  ),
  'icons' => 
  array (
  ),
  'library' => 
  array (
  ),
)

File

import/commenter.bueditor.txt
View source
  1. array (
  2. 'name' => 'Commenter',
  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' => 'Bold',
  13. 'content' => '%TEXT%',
  14. 'icon' => 'bold.png',
  15. 'accesskey' => 'B',
  16. 'weight' => '0',
  17. ),
  18. 1 =>
  19. array (
  20. 'title' => 'Italic',
  21. 'content' => '%TEXT%',
  22. 'icon' => 'italic.png',
  23. 'accesskey' => 'I',
  24. 'weight' => '1',
  25. ),
  26. 2 =>
  27. array (
  28. 'title' => 'tpl:dot',
  29. 'content' => '',
  30. 'icon' => 'dot.png',
  31. 'accesskey' => '',
  32. 'weight' => '2',
  33. ),
  34. 3 =>
  35. array (
  36. 'title' => 'Quote',
  37. 'content' => '
    %TEXT%
    ',
  38. 'icon' => 'quote.png',
  39. 'accesskey' => 'Q',
  40. 'weight' => '3',
  41. ),
  42. 4 =>
  43. array (
  44. 'title' => 'Code',
  45. 'content' => '%TEXT%',
  46. 'icon' => 'code.png',
  47. 'accesskey' => 'D',
  48. 'weight' => '4',
  49. ),
  50. 5 =>
  51. array (
  52. 'title' => 'tpl:dot',
  53. 'content' => '',
  54. 'icon' => 'dot.png',
  55. 'accesskey' => '',
  56. 'weight' => '5',
  57. ),
  58. 6 =>
  59. array (
  60. 'title' => 'Number list',
  61. 'content' => 'js:
  62. var pos = E.replaceSelection(\'
      \\n
    1. \' + E.getSelection().replace(/\\r\\n?|\\n/g, \'
    2. \\n
    3. \') + \'
    4. \\n
    \').posSelection().end - 11;
  63. E.makeSelection(pos, pos);',
  64. 'icon' => 'ol.png',
  65. 'accesskey' => 'O',
  66. 'weight' => '6',
  67. ),
  68. 7 =>
  69. array (
  70. 'title' => 'Bullet list',
  71. 'content' => 'js:
  72. var pos = E.replaceSelection(\'
      \\n
    • \' + E.getSelection().replace(/\\r\\n?|\\n/g, \'
    • \\n
    • \') + \'
    • \\n
    \').posSelection().end - 11;
  73. E.makeSelection(pos, pos);',
  74. 'icon' => 'ul.png',
  75. 'accesskey' => 'N',
  76. 'weight' => '7',
  77. ),
  78. 8 =>
  79. array (
  80. 'title' => 'tpl:dot',
  81. 'content' => '',
  82. 'icon' => 'dot.png',
  83. 'accesskey' => '',
  84. 'weight' => '8',
  85. ),
  86. 9 =>
  87. array (
  88. 'title' => 'Insert link',
  89. 'content' => 'js:
  90. var url = prompt(\'Enter the link address\', \'http://www.example.com\');
  91. url && E.tagSelection(\'\', \'\');',
  92. 'icon' => 'link.png',
  93. 'accesskey' => 'L',
  94. 'weight' => '9',
  95. ),
  96. ),
  97. 'icons' =>
  98. array (
  99. ),
  100. 'library' =>
  101. array (
  102. ),
  103. )