(textStyleModel)
| 17713 | // } |
| 17714 | // } |
| 17715 | function getRichItemNames(textStyleModel) { |
| 17716 | // Use object to remove duplicated names. |
| 17717 | var richItemNameMap; |
| 17718 | while (textStyleModel && textStyleModel !== textStyleModel.ecModel) { |
| 17719 | var rich = (textStyleModel.option || EMPTY_OBJ).rich; |
| 17720 | if (rich) { |
| 17721 | richItemNameMap = richItemNameMap || {}; |
| 17722 | for (var name in rich) { |
| 17723 | if (rich.hasOwnProperty(name)) { |
| 17724 | richItemNameMap[name] = 1; |
| 17725 | } |
| 17726 | } |
| 17727 | } |
| 17728 | textStyleModel = textStyleModel.parentModel; |
| 17729 | } |
| 17730 | return richItemNameMap; |
| 17731 | } |
| 17732 | |
| 17733 | function setTokenTextStyle(textStyle, textStyleModel, globalTextStyle, opt, isEmphasis, isBlock) { |
| 17734 | // In merge mode, default value should not be given. |
no outgoing calls
no test coverage detected