Changeset 588
- Timestamp:
- 04/15/09 20:44:35 (3 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/test/wym_stylesheet.css
r563 r588 19 19 20 20 /* PARA: Date */ 21 .date p{21 p.date { 22 22 color: #ccf; 23 23 /* background-color: #ff9; border: 2px solid #ee9; */ … … 25 25 26 26 /* PARA: Hidden note */ 27 .hidden-note p/* p[@class!="important"] */ {27 p.hidden-note /* p[@class!="important"] */ { 28 28 display: none; 29 29 /* color: #999; border: 2px solid #ccc; */ … … 31 31 32 32 /* PARA: Important */ 33 .important p/* p[@class!="hidden-note"] */ {33 p.important /* p[@class!="hidden-note"] */ { 34 34 color: red; font-weight: bold; 35 35 /* color: red; font-weight: bold; border: 2px solid red; */ 36 36 } 37 37 38 .border img{38 img.border { 39 39 border: 1px solid #ccc; 40 40 /* border: 4px solid #ccc; */ … … 42 42 43 43 /* LIST: Special */ 44 .special ul,45 .special ol {44 ul.special, 45 ol.special { 46 46 color: green; 47 47 /** / background-color: #fc9; border: 2px solid red; /**/ -
trunk/src/wymeditor/jquery.wymeditor.js
r587 r588 735 735 736 736 //load wymbox 737 this._box = jQuery(this._element).hide().after(this._options.boxHtml).next() ;737 this._box = jQuery(this._element).hide().after(this._options.boxHtml).next().addClass('wym_box_' + this._index); 738 738 739 739 //store the instance index in the wymbox element … … 3581 3581 } 3582 3582 3583 this.addSpecialPattern(" \\\x2e[a-z-_0-9]+[\\sa-z1-6]*", 'WymCss', 'WymCssStyleDeclaration');3583 this.addSpecialPattern("[\\sa-z1-6]*\\\x2e[a-z-_0-9]+", 'WymCss', 'WymCssStyleDeclaration'); 3584 3584 3585 3585 this.addEntryPattern("/\\\x2a", 'WymCss', 'WymCssComment'); … … 3589 3589 this.addExitPattern("\x7d", 'WymCssStyle'); 3590 3590 3591 this.addEntryPattern("/\\\x2a", 'WymCssStyle', 'WymCssFe ddbackStyle');3592 this.addExitPattern("\\\x2a/", 'WymCssFe ddbackStyle');3591 this.addEntryPattern("/\\\x2a", 'WymCssStyle', 'WymCssFeedbackStyle'); 3592 this.addExitPattern("\\\x2a/", 'WymCssFeedbackStyle'); 3593 3593 3594 3594 return this; … … 3654 3654 }; 3655 3655 3656 WYMeditor.WymCssParser.prototype.WymCssFe ddbackStyle = function(match, status)3656 WYMeditor.WymCssParser.prototype.WymCssFeedbackStyle = function(match, status) 3657 3657 { 3658 3658 if(status == WYMeditor.LEXER_UNMATCHED){ … … 3667 3667 3668 3668 var tag = ''; 3669 if(match.indexOf(' 3670 var parts = match.split(' 3671 this._current_element = parts[ 0];3672 var tag = parts[ 1];3669 if(match.indexOf('.') > 0){ 3670 var parts = match.split('.'); 3671 this._current_element = parts[1]; 3672 var tag = parts[0]; 3673 3673 }else{ 3674 3674 this._current_element = match;
Note: See TracChangeset
for help on using the changeset viewer.