tinymce中如何确定文本字体大小

How to determine the text font size in tinymce

我想当我点击文本时,编辑器工具栏中文本的字体大小被确定。比如微软office word。我该怎么做?

var editor = tinymce.activeEditor;
var node = editor.selection.getNode();
var fontSize = editor.dom.getStyle(node, 'font-size');