|
|
|
@ -17,7 +17,8 @@ import Editor, {
|
|
|
|
PageMode,
|
|
|
|
PageMode,
|
|
|
|
PaperDirection,
|
|
|
|
PaperDirection,
|
|
|
|
RowFlex,
|
|
|
|
RowFlex,
|
|
|
|
TitleLevel
|
|
|
|
TitleLevel,
|
|
|
|
|
|
|
|
splitText
|
|
|
|
} from './editor'
|
|
|
|
} from './editor'
|
|
|
|
import { Dialog } from './components/dialog/Dialog'
|
|
|
|
import { Dialog } from './components/dialog/Dialog'
|
|
|
|
import { formatPrismToken } from './utils/prism'
|
|
|
|
import { formatPrismToken } from './utils/prism'
|
|
|
|
@ -442,7 +443,7 @@ window.onload = function () {
|
|
|
|
type: ElementType.HYPERLINK,
|
|
|
|
type: ElementType.HYPERLINK,
|
|
|
|
value: '',
|
|
|
|
value: '',
|
|
|
|
url,
|
|
|
|
url,
|
|
|
|
valueList: name.split('').map(n => ({
|
|
|
|
valueList: splitText(name).map(n => ({
|
|
|
|
value: n,
|
|
|
|
value: n,
|
|
|
|
size: 16
|
|
|
|
size: 16
|
|
|
|
}))
|
|
|
|
}))
|
|
|
|
@ -563,7 +564,7 @@ window.onload = function () {
|
|
|
|
const elementList: IElement[] = []
|
|
|
|
const elementList: IElement[] = []
|
|
|
|
for (let i = 0; i < formatTokenList.length; i++) {
|
|
|
|
for (let i = 0; i < formatTokenList.length; i++) {
|
|
|
|
const formatToken = formatTokenList[i]
|
|
|
|
const formatToken = formatTokenList[i]
|
|
|
|
const tokenStringList = formatToken.content.split('')
|
|
|
|
const tokenStringList = splitText(formatToken.content)
|
|
|
|
for (let j = 0; j < tokenStringList.length; j++) {
|
|
|
|
for (let j = 0; j < tokenStringList.length; j++) {
|
|
|
|
const value = tokenStringList[j]
|
|
|
|
const value = tokenStringList[j]
|
|
|
|
const element: IElement = {
|
|
|
|
const element: IElement = {
|
|
|
|
|