hello,
i want to set default size in Dropdownlist Size using tool file:
iam using this code:
<script type='text/javascript'>
function OnClientLoad(editor, args) {
var fontFamily = editor.getToolByName("FontName");
var fontSize = editor.getToolByName("FontSize");
var timeout = (document.all) ? timeout = 0 : timeout = 1000;
setTimeout(function () {
fontFamily._element.getElementsByTagName("span")[0].innerHTML = "Arial";
fontSize._element.getElementsByTagName("span")[0].innerHTML = "2";
}, timeout);
}</script>
i can set default size (1.jpg File Attach), but when i write some word in Editor, the Size is changed to "Size" and RealFontSize is Changed (2.jpg File Attach).
Please Help me to resolve Set Default Size ( not real font size) and do not change.
this is content of toolfile.xml:
<root>
<tools name="MainToolbar" dockable="true" enabled="true">
<tool name="AjaxSpellCheck" />
<tool name="FindAndReplace" />
<tool separator="true"/>
<tool name="Undo" />
<tool name="Redo" />
<tool separator="true"/>
<tool name="Cut" />
<tool name="Copy" />
<tool name="Paste" shortcut="CTRL+!"/>
</tools>
<tools name="Formatting" enabled="true" dockable="true">
<tool name="Bold" />
<tool name="Italic" />
<tool name="Underline" />
<tool separator="true"/>
<tool name="ForeColor" />
<tool name="BackColor"/>
<tool separator="true"/>
<tool name="FontName"/>
<tool name="FontSize"/>
<tool name="RealFontSize"/>
</tools>
</root>
.
thanks So much!!
i want to set default size in Dropdownlist Size using tool file:
iam using this code:
<script type='text/javascript'>
function OnClientLoad(editor, args) {
var fontFamily = editor.getToolByName("FontName");
var fontSize = editor.getToolByName("FontSize");
var timeout = (document.all) ? timeout = 0 : timeout = 1000;
setTimeout(function () {
fontFamily._element.getElementsByTagName("span")[0].innerHTML = "Arial";
fontSize._element.getElementsByTagName("span")[0].innerHTML = "2";
}, timeout);
}</script>
i can set default size (1.jpg File Attach), but when i write some word in Editor, the Size is changed to "Size" and RealFontSize is Changed (2.jpg File Attach).
Please Help me to resolve Set Default Size ( not real font size) and do not change.
this is content of toolfile.xml:
<root>
<tools name="MainToolbar" dockable="true" enabled="true">
<tool name="AjaxSpellCheck" />
<tool name="FindAndReplace" />
<tool separator="true"/>
<tool name="Undo" />
<tool name="Redo" />
<tool separator="true"/>
<tool name="Cut" />
<tool name="Copy" />
<tool name="Paste" shortcut="CTRL+!"/>
</tools>
<tools name="Formatting" enabled="true" dockable="true">
<tool name="Bold" />
<tool name="Italic" />
<tool name="Underline" />
<tool separator="true"/>
<tool name="ForeColor" />
<tool name="BackColor"/>
<tool separator="true"/>
<tool name="FontName"/>
<tool name="FontSize"/>
<tool name="RealFontSize"/>
</tools>
</root>
.
thanks So much!!