Dotclear


Ignore:
Timestamp:
06/24/16 10:23:37 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add mark button

Location:
plugins/dcLegacyEditor/js/jsToolBar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcLegacyEditor/js/jsToolBar/jsToolBar.js

    r3003 r3258  
    429429}; 
    430430 
     431// code 
     432jsToolBar.prototype.elements.mark = { 
     433     type: 'button', 
     434     title: 'Mark', 
     435     fn: { 
     436          wiki: function() { this.singleTag('""') }, 
     437          xhtml: function() { this.singleTag('<mark>','</mark>')} 
     438     } 
     439}; 
     440 
    431441// spacer 
    432442jsToolBar.prototype.elements.space1 = { 
  • plugins/dcLegacyEditor/js/jsToolBar/jsToolBar.wysiwyg.js

    r2614 r3258  
    655655}; 
    656656 
     657jsToolBar.prototype.elements.mark.fn.wysiwyg = function() { 
     658     var n = this.getSelectedNode(); 
     659     var mark = this.iwin.document.createElement('mark'); 
     660     mark.appendChild(n); 
     661     this.insertNode(mark); 
     662}; 
     663 
    657664jsToolBar.prototype.elements.br.fn.wysiwyg = function() { 
    658665     var n = this.iwin.document.createElement('br'); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map