nnhubbard / ZSSRichTextEditor

A beautiful rich text WYSIWYG editor for iOS with a syntax highlighted source view
MIT License
3.78k stars 584 forks source link

a question about change font size #102

Closed SoulArsenic closed 8 years ago

SoulArsenic commented 8 years ago

I have change zss_editor.setHeading method implementation to document.execCommand('fontSize', false, heading ); but got an new issue

When I used  document.execCommand('fontSize', false, "4") to change font of the string 编辑文字.

Use getHTML method Got result :

<font size="4">编辑文字</font>

But if i use  document.execCommand('fontSize', false, "3"), only got 编辑文字.

I want to know why can not get result like <font size= "3">编辑文字</font> .