一些检查失败了
automerge / automerge (push) Has been cancelled
react-native-android-build-apk / AssembleRelease (push) Has been cancelled
Build macOS M1 / Main (push) Has been cancelled
Joplin Continuous Integration / Main (macos-15-intel) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-11-vs2026-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-2025) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04-arm) (push) Has been cancelled
Joplin UI tests / Main (ubuntu-22.04) (push) Has been cancelled
Joplin UI tests / Main (windows-2025) (push) Has been cancelled
Joplin UI tests / Mobile (push) Has been cancelled
Close stale issues / ProcessStaleIssues (push) Has been cancelled
29 行
938 B
TypeScript
29 行
938 B
TypeScript
export interface TinyMceCommand {
|
|
name: string;
|
|
value?: string;
|
|
ui?: boolean;
|
|
}
|
|
|
|
interface JoplinCommandToTinyMceCommands {
|
|
[key: string]: TinyMceCommand | boolean;
|
|
}
|
|
|
|
// If the mapping is simply `true` it means that the command is supported via
|
|
// useWindowCommandHandlers.ts. We still add it here to have the complete list
|
|
// of supported commands.
|
|
export const joplinCommandToTinyMceCommands: JoplinCommandToTinyMceCommands = {
|
|
'textBold': { name: 'mceToggleFormat', value: 'bold' },
|
|
'textItalic': { name: 'mceToggleFormat', value: 'italic' },
|
|
'textCode': { name: 'mceToggleFormat', value: 'code' },
|
|
'textLink': { name: 'mceLink' },
|
|
'textBulletedList': { name: 'InsertUnorderedList' },
|
|
'textNumberedList': { name: 'InsertOrderedList' },
|
|
'search': { name: 'SearchReplace' },
|
|
'attachFile': { name: 'joplinAttach' },
|
|
'insertDateTime': true,
|
|
'textCopy': true,
|
|
'textCut': true,
|
|
'textPaste': true,
|
|
'textSelectAll': true,
|
|
};
|