/[drupal]/contributions/modules/bbcode_wysiwyg/bbcode_wysiwyg.js
ViewVC logotype

Diff of /contributions/modules/bbcode_wysiwyg/bbcode_wysiwyg.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.4, Tue Apr 29 04:03:50 2008 UTC revision 1.1.2.5, Tue Apr 29 04:09:59 2008 UTC
# Line 95  Drupal.bbcodeClick = function(button) { Line 95  Drupal.bbcodeClick = function(button) {
95      after = '[/url]';      after = '[/url]';
96    }    }
97    
   
98    // Image    // Image
99    if (button == 'image') {    if (button == 'image') {
100      before = '[img]';      before = '[img]';
# Line 155  Drupal.bbcodeGetTextareaSelection = func Line 154  Drupal.bbcodeGetTextareaSelection = func
154    return text;    return text;
155  }  }
156    
157    
158  Drupal.bbcodeQuoteLink = function(username, body) {  Drupal.bbcodeQuoteLink = function(username, body) {
159    var area = $('#' + Drupal.settings.bbcode_wysiwyg.attachTo)[0];    var area = $('#' + Drupal.settings.bbcode_wysiwyg.attachTo)[0];
160    Drupal.bbcodeInsertAtCursor(area, '[quote='+ username +']'+ body +'[/quote]');    Drupal.bbcodeInsertAtCursor(area, '[quote='+ username +']'+ body +'[/quote]');
161    area.focus();    area.focus();
162  }  }
163    
164    
165  Drupal.bbcodeGetDomSelection = function() {  Drupal.bbcodeGetDomSelection = function() {
166    var txt = '';    var txt = '';
167    if (window.getSelection) {    if (window.getSelection) {

Legend:
Removed from v.1.1.2.4  
changed lines
  Added in v.1.1.2.5

  ViewVC Help
Powered by ViewVC 1.1.2