![]() ![]() These configuration options let you set custom definitons for basic text style output: For example, the Bold feature can be implemented as, , or. # Custom Basic Text Style Definitionīasic text styles can be output in HTML in different ways. You will need to provide the in-page configuration for all other CKEditor 4 instances that you want to use it with. ![]() This will only apply to a selected CKEditor 4 instance that you create, without affecting your global configuration. RemoveButtons: 'Cut,Copy,Paste,Undo,Redo,Anchor' If you want to change the default settings for a particular editor instance, provide the modified config.removeButtons value in the in-page configuration when creating a CKEditor 4 instance, for example: // For the Basic preset: # Enable All Basic Styles for a Single Editor Instance Solution: Provide a custom configuration file overriding the default configuration. You will need to remember not to overwrite this file when upgrading to a newer CKEditor 4 version. This will apply to all CKEditor 4 instances that you create, so you will not need to remember to change it for each one separately. Open the config.js file available in your ckeditor directory, and edit the config.removeButtons entry in the following way: // For the Basic preset:Ĭonfig.removeButtons = 'Cut,Copy,Paste,Undo,Redo,Anchor' If you want to quickly remove basic styles from your document, use the Remove Format button provided by the Remove Format plugin.īasic text styles work on text selections check the Text Formats feature for block-level text formatting.īy default, some of these styles are disabled in the Basic and Standard presets through the setting in the config.js file, but you can easily enable them by using one of the following solutions. When enabled, it adds the Bold, Italic, Underline, Strikethrough, Subscript and Superscript toolbar buttons that apply these styles. The Basic Styles plugin provides the ability to add some basic text formatting to your document. This feature is provided through a plugin that is included in all official CKEditor 4 distributions (Basic, Standard, Full) available from the official CKEditor Download site, although some text style buttons are disabled in the Basic and Standard preset.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |