projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Roo/form/HtmlEditor/ToolbarStandard.js
[roojs1]
/
Roo
/
form
/
HtmlEditor
/
ToolbarStandard.js
diff --git
a/Roo/form/HtmlEditor/ToolbarStandard.js
b/Roo/form/HtmlEditor/ToolbarStandard.js
index
01d4ca4
..
0c0f7d4
100644
(file)
--- a/
Roo/form/HtmlEditor/ToolbarStandard.js
+++ b/
Roo/form/HtmlEditor/ToolbarStandard.js
@@
-238,7
+238,8
@@
Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype, {
tb.add(
btn('bold'),
btn('italic'),
tb.add(
btn('bold'),
btn('italic'),
- btn('underline')
+ btn('underline'),
+ btn('strikethrough')
);
};
if(!this.disable.fontSize){
);
};
if(!this.disable.fontSize){
@@
-432,8
+433,8
@@
Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype, {
handler: function(a,b) {
var c = Roo.get(editorcore.doc.body);
handler: function(a,b) {
var c = Roo.get(editorcore.doc.body);
- c.select('[
style
]').each(function(s) {
- s.dom.removeAttribute('
style
');
+ c.select('[
class
]').each(function(s) {
+ s.dom.removeAttribute('
class
');
});
editorcore.syncValue();
},
});
editorcore.syncValue();
},
@@
-557,6
+558,7
@@
Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype, {
btns[frameId + '-bold'].toggle(doc.queryCommandState('bold'));
btns[frameId + '-italic'].toggle(doc.queryCommandState('italic'));
btns[frameId + '-underline'].toggle(doc.queryCommandState('underline'));
btns[frameId + '-bold'].toggle(doc.queryCommandState('bold'));
btns[frameId + '-italic'].toggle(doc.queryCommandState('italic'));
btns[frameId + '-underline'].toggle(doc.queryCommandState('underline'));
+ btns[frameId + '-strikethrough'].toggle(doc.queryCommandState('strikethrough'));
}
if(!this.disable.alignments){
btns[frameId + '-justifyleft'].toggle(doc.queryCommandState('justifyleft'));
}
if(!this.disable.alignments){
btns[frameId + '-justifyleft'].toggle(doc.queryCommandState('justifyleft'));
@@
-682,6
+684,11
@@
Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype, {
text: 'Underline the selected text.',
cls: 'x-html-editor-tip'
},
text: 'Underline the selected text.',
cls: 'x-html-editor-tip'
},
+ strikethrough : {
+ title: 'Strikethrough',
+ text: 'Strikethrough the selected text.',
+ cls: 'x-html-editor-tip'
+ },
increasefontsize : {
title: 'Grow Text',
text: 'Increase the font size.',
increasefontsize : {
title: 'Grow Text',
text: 'Increase the font size.',