Hi I am using NicEditor and I want the font size work in defferent way bec. rightnow the editor uses the:
<font amount= 1..7 >the selected text here</font>
I wan t it to become a span tag i.e.
<span Format= font-size:30px >the selected text here</span>
Here is the code for the dropdown:
var nicEditorFontSizeSelect = nicEditorSelect.extend({
sel : {1 : 1 (8pt) , 2 : 2 (10pt) , 3 : 3 (12pt) , 4 : 4 (14pt) , 5 : 5 (18pt) , 6 : 6 (24pt) , 7 : 7 (36pt) , 8 : 8 (48pt) , 9 : 9 (72pt) , 10 : 10 90pt) , 11 : 11 (100pt) },
init : function() {
this.setDisplay( Font Size... );
for(itm in this.sel) {
this.add(itm, <font size=" +itm+ "> +this.sel[itm]+ </font> );
}
}
});
but I can not find the code to modify so that it will replace the font
into a span
tag inside the textarea.
任何建议都受到欢迎。
Thank you