EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Pierre on December 20, 2016, 01:37:45 AM



Title: [SOLVED] TextEditor
Post by: Pierre on December 20, 2016, 01:37:45 AM
Hello
how to change default font and size on TextEditor, please?
I try:
Code:
<div class="easyui-texteditor" fit="true" style="padding:10px" data-options="fontname:'Arial'">
and
Code:
<div class="easyui-texteditor" fit="true" fontname="Arial" style="padding:10px">

but it does not worked  ???
Thank you.


Title: Re: TextEditor
Post by: stworthy on December 20, 2016, 02:24:19 AM
Just set the 'font-family' and 'font-size' styles.
Code:
<div class="easyui-texteditor" title="TextEditor" style="width:700px;height:300px;padding:20px;font-size:14px;font-family:Arial">
</div>


Title: Re: TextEditor
Post by: Pierre on December 20, 2016, 05:55:06 AM
Awesome, like always :)
Thank you!