mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-30 20:41:33 +08:00 
			
		
		
		
	feat(ckeditor): enable bookmark plugin
This commit is contained in:
		
							parent
							
								
									f8e644acd7
								
							
						
					
					
						commit
						ef76d28d38
					
				| @ -169,7 +169,7 @@ export function buildClassicToolbar(multilineToolbar: boolean) { | |||||||
|                 { |                 { | ||||||
|                     label: "Insert", |                     label: "Insert", | ||||||
|                     icon: "plus", |                     icon: "plus", | ||||||
|                     items: ["imageUpload", "|", "link", "internallink", "includeNote", "|", "specialCharacters", "math", "mermaid", "horizontalLine", "pageBreak"] |                     items: ["imageUpload", "|", "link", "bookmark", "internallink", "includeNote", "|", "specialCharacters", "math", "mermaid", "horizontalLine", "pageBreak"] | ||||||
|                 }, |                 }, | ||||||
|                 "|", |                 "|", | ||||||
|                 "outdent", |                 "outdent", | ||||||
| @ -202,6 +202,7 @@ export function buildFloatingToolbar() { | |||||||
|                 "|", |                 "|", | ||||||
|                 "code", |                 "code", | ||||||
|                 "link", |                 "link", | ||||||
|  |                 "bookmark", | ||||||
|                 "removeFormat", |                 "removeFormat", | ||||||
|                 "internallink", |                 "internallink", | ||||||
|                 "cuttonote" |                 "cuttonote" | ||||||
|  | |||||||
| @ -20,6 +20,7 @@ | |||||||
| 
 | 
 | ||||||
| *   Improved the text editor style, to match the TriliumNext. | *   Improved the text editor style, to match the TriliumNext. | ||||||
| *   Footnotes work in image captions by @werererer | *   Footnotes work in image captions by @werererer | ||||||
|  | *   Text notes now have support for bookmarks, similar to HTML anchors (see the in-app help for more details). | ||||||
| 
 | 
 | ||||||
| ## 📖 Documentation | ## 📖 Documentation | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| import { Autoformat, AutoLink, BlockQuote, BlockToolbar, Bold, CKFinderUploadAdapter, Clipboard, Code, CodeBlock, Enter, FindAndReplace, Font, FontBackgroundColor, FontColor, GeneralHtmlSupport, Heading, HeadingButtonsUI, HorizontalLine, Image, ImageCaption, ImageInline, ImageResize, ImageStyle, ImageToolbar, ImageUpload, Indent, IndentBlock, Italic, Link, List, ListProperties, Mention, PageBreak, Paragraph, ParagraphButtonUI, PasteFromOffice, PictureEditing, RemoveFormat, SelectAll, ShiftEnter, SpecialCharacters, SpecialCharactersEssentials, Strikethrough, Style, Subscript, Superscript, Table, TableCaption, TableCellProperties, TableColumnResize, TableProperties, TableSelection, TableToolbar, TextPartLanguage, TextTransformation, TodoList, Typing, Underline, Undo } from "ckeditor5"; | import { Autoformat, AutoLink, BlockQuote, BlockToolbar, Bold, CKFinderUploadAdapter, Clipboard, Code, CodeBlock, Enter, FindAndReplace, Font, FontBackgroundColor, FontColor, GeneralHtmlSupport, Heading, HeadingButtonsUI, HorizontalLine, Image, ImageCaption, ImageInline, ImageResize, ImageStyle, ImageToolbar, ImageUpload, Indent, IndentBlock, Italic, Link, List, ListProperties, Mention, PageBreak, Paragraph, ParagraphButtonUI, PasteFromOffice, PictureEditing, RemoveFormat, SelectAll, ShiftEnter, SpecialCharacters, SpecialCharactersEssentials, Strikethrough, Style, Subscript, Superscript, Table, TableCaption, TableCellProperties, TableColumnResize, TableProperties, TableSelection, TableToolbar, TextPartLanguage, TextTransformation, TodoList, Typing, Underline, Undo, Bookmark } from "ckeditor5"; | ||||||
| import type { Plugin } from "ckeditor5"; | import type { Plugin } from "ckeditor5"; | ||||||
| import CutToNotePlugin from "./plugins/cuttonote.js"; | import CutToNotePlugin from "./plugins/cuttonote.js"; | ||||||
| import UploadimagePlugin from "./plugins/uploadimage.js"; | import UploadimagePlugin from "./plugins/uploadimage.js"; | ||||||
| @ -111,7 +111,8 @@ export const COMMON_PLUGINS: typeof Plugin[] = [ | |||||||
| 	PageBreak, | 	PageBreak, | ||||||
| 	GeneralHtmlSupport, | 	GeneralHtmlSupport, | ||||||
| 	TextPartLanguage, | 	TextPartLanguage, | ||||||
|     Style |     Style, | ||||||
|  |     Bookmark | ||||||
| ]; | ]; | ||||||
| 
 | 
 | ||||||
| export const POPUP_EDITOR_PLUGINS: typeof Plugin[] = [ | export const POPUP_EDITOR_PLUGINS: typeof Plugin[] = [ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran