8
0
فهرست منبع

HTML to lower case.

Kamil Piechaczek 5 سال پیش
والد
کامیت
60ae087ee8

+ 2 - 2
packages/ckeditor5-html-embed/docs/_snippets/features/html-embed.js

@@ -7,9 +7,9 @@
 
 import ClassicEditor from '@ckeditor/ckeditor5-build-classic/src/ckeditor';
 import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-services-config';
-import HTMLEmbed from '@ckeditor/ckeditor5-html-embed/src/htmlembed';
+import HtmlEmbed from '@ckeditor/ckeditor5-html-embed/src/htmlembed';
 
-ClassicEditor.builtinPlugins.push( HTMLEmbed );
+ClassicEditor.builtinPlugins.push( HtmlEmbed );
 
 ClassicEditor
 	.create( document.querySelector( '#snippet-html-embed' ), {

+ 1 - 1
packages/ckeditor5-html-embed/docs/api/html-embed.md

@@ -14,7 +14,7 @@ Check out the {@link features/html-embed#demo demo in the HTML embed feature} gu
 
 ## Documentation
 
-See the {@link features/html-embed HTML embed feature} guide and the {@link module:html-embed/htmlembed~HTMLEmbed} plugin documentation.
+See the {@link features/html-embed HTML embed feature} guide and the {@link module:html-embed/htmlembed~HtmlEmbed} plugin documentation.
 
 ## Installation
 

+ 6 - 6
packages/ckeditor5-html-embed/docs/features/html-embed.md

@@ -5,11 +5,11 @@ menu-title: HTML embed
 
 # HTML embed
 
-The {@link module:html-embed/htmlembed~HTMLEmbed} plugin provides the possibility to insert a HTML codeinto the rich-text editor.
+The {@link module:html-embed/htmlembed~HtmlEmbed} plugin provides the possibility to insert a HTML codeinto the rich-text editor.
 
 ## Demo
 
-Use the editor below to see the {@link module:html-embed/htmlembed~HTMLEmbed} plugin in action.
+Use the editor below to see the {@link module:html-embed/htmlembed~HtmlEmbed} plugin in action.
 
 {@snippet features/html-embed}
 
@@ -24,11 +24,11 @@ npm install --save @ckeditor/ckeditor5-html-embed
 And add it to your plugin list configuration:
 
 ```js
-import HTMLEmbed from '@ckeditor/ckeditor5-html-embed/src/htmlembed';
+import HtmlEmbed from '@ckeditor/ckeditor5-html-embed/src/htmlembed';
 
 ClassicEditor
 	.create( document.querySelector( '#editor' ), {
-		plugins: [ HTMLEmbed, ... ],
+		plugins: [ HtmlEmbed, ... ],
 		toolbar: [ 'htmlEmbed', ... ],
 	} )
 	.then( ... )
@@ -41,9 +41,9 @@ ClassicEditor
 
 ## Common API
 
-The {@link module:html-embed/htmlembed~HTMLEmbed} plugin registers:
+The {@link module:html-embed/htmlembed~HtmlEmbed} plugin registers:
 * the UI button component (`'htmlEmbed'`),
-* the `'htmlEmbed'` command implemented by {@link module:html-embed/htmlembedcommand~HTMLEmbedCommand}.
+* the `'htmlEmbed'` command implemented by {@link module:html-embed/htmlembedcommand~HtmlEmbedCommand}.
 
 The command can be executed using the {@link module:core/editor/editor~Editor#execute `editor.execute()`} method:
 

+ 5 - 5
packages/ckeditor5-html-embed/src/htmlembed.js

@@ -8,8 +8,8 @@
  */
 
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
-import HTMLEmbedEditing from './htmlembedediting';
-import HTMLEmbedUI from './htmlembedui';
+import HtmlEmbedEditing from './htmlembedediting';
+import HtmlEmbedUI from './htmlembedui';
 
 /**
  * The HTML embed feature.
@@ -20,19 +20,19 @@ import HTMLEmbedUI from './htmlembedui';
  *
  * @extends module:core/plugin~Plugin
  */
-export default class HTMLEmbed extends Plugin {
+export default class HtmlEmbed extends Plugin {
 	/**
 	 * @inheritDoc
 	 */
 	static get requires() {
-		return [ HTMLEmbedEditing, HTMLEmbedUI ];
+		return [ HtmlEmbedEditing, HtmlEmbedUI ];
 	}
 
 	/**
 	 * @inheritDoc
 	 */
 	static get pluginName() {
-		return 'HTMLEmbed';
+		return 'HtmlEmbed';
 	}
 }
 

+ 6 - 6
packages/ckeditor5-html-embed/src/htmlembedediting.js

@@ -12,8 +12,8 @@ import HtmlDataProcessor from '@ckeditor/ckeditor5-engine/src/dataprocessor/html
 import UpcastWriter from '@ckeditor/ckeditor5-engine/src/view/upcastwriter';
 import { logWarning } from '@ckeditor/ckeditor5-utils/src/ckeditorerror';
 import { toWidget } from '@ckeditor/ckeditor5-widget/src/utils';
-import HTMLEmbedInsertCommand from './htmlembedinsertcommand';
-import HTMLEmbedUpdateCommand from './htmlembedupdatecommand';
+import HtmlEmbedInsertCommand from './htmlembedinsertcommand';
+import HtmlEmbedUpdateCommand from './htmlembedupdatecommand';
 
 import htmlEmbedModeIcon from '../theme/icons/htmlembedmode.svg';
 
@@ -26,12 +26,12 @@ const DISPLAY_PREVIEW_CLASS = 'raw-html--display-preview';
  *
  * @extends module:core/plugin~Plugin
  */
-export default class HTMLEmbedEditing extends Plugin {
+export default class HtmlEmbedEditing extends Plugin {
 	/**
 	 * @inheritDoc
 	 */
 	static get pluginName() {
-		return 'HTMLEmbedEditing';
+		return 'HtmlEmbedEditing';
 	}
 
 	/**
@@ -68,8 +68,8 @@ export default class HTMLEmbedEditing extends Plugin {
 		const editor = this.editor;
 		const schema = editor.model.schema;
 
-		const htmlEmbedInsertCommand = new HTMLEmbedInsertCommand( editor );
-		const htmlEmbedUpdateCommand = new HTMLEmbedUpdateCommand( editor );
+		const htmlEmbedInsertCommand = new HtmlEmbedInsertCommand( editor );
+		const htmlEmbedUpdateCommand = new HtmlEmbedUpdateCommand( editor );
 
 		schema.register( 'rawHtml', {
 			isObject: true,

+ 2 - 2
packages/ckeditor5-html-embed/src/htmlembedinsertcommand.js

@@ -13,7 +13,7 @@ import { findOptimalInsertionPosition } from '@ckeditor/ckeditor5-widget/src/uti
 /**
  * The insert raw html element command.
  *
- * The command is registered by {@link module:html-embed/htmlembedediting~HTMLEmbedEditing} as `'htmlEmbedInsert'`.
+ * The command is registered by {@link module:html-embed/htmlembedediting~HtmlEmbedEditing} as `'htmlEmbedInsert'`.
  *
  * To insert a page break at the current selection, execute the command:
  *
@@ -21,7 +21,7 @@ import { findOptimalInsertionPosition } from '@ckeditor/ckeditor5-widget/src/uti
  *
  * @extends module:core/command~Command
  */
-export default class HTMLEmbedInsertCommand extends Command {
+export default class HtmlEmbedInsertCommand extends Command {
 	/**
 	 * @inheritDoc
 	 */

+ 1 - 1
packages/ckeditor5-html-embed/src/htmlembedui.js

@@ -17,7 +17,7 @@ import { isWidget } from '@ckeditor/ckeditor5-widget/src/utils';
  *
  * @extends module:core/plugin~Plugin
  */
-export default class HTMLEmbedUI extends Plugin {
+export default class HtmlEmbedUI extends Plugin {
 	init() {
 		const editor = this.editor;
 		const t = editor.t;

+ 2 - 2
packages/ckeditor5-html-embed/src/htmlembedupdatecommand.js

@@ -12,7 +12,7 @@ import Command from '@ckeditor/ckeditor5-core/src/command';
 /**
  * The update raw html value command.
  *
- * The command is registered by {@link module:html-embed/htmlembedediting~HTMLEmbedEditing} as `'htmlEmbedUpdate'`.
+ * The command is registered by {@link module:html-embed/htmlembedediting~HtmlEmbedEditing} as `'htmlEmbedUpdate'`.
  *
  * To update the value of the raw html element at the current selection, execute the command:
  *
@@ -20,7 +20,7 @@ import Command from '@ckeditor/ckeditor5-core/src/command';
  *
  * @extends module:core/command~Command
  */
-export default class HTMLEmbedUpdateCommand extends Command {
+export default class HtmlEmbedUpdateCommand extends Command {
 	/**
 	 * @inheritDoc
 	 */

+ 7 - 7
packages/ckeditor5-html-embed/tests/htmlembed.js

@@ -3,16 +3,16 @@
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
-import HTMLEmbed from '../src/htmlembed';
-import HTMLEmbedUI from '../src/htmlembedui';
-import HTMLEmbedEditing from '../src/htmlembedediting';
+import HtmlEmbed from '../src/htmlembed';
+import HtmlEmbedUI from '../src/htmlembedui';
+import HtmlEmbedEditing from '../src/htmlembedediting';
 
-describe( 'HTMLEMbed', () => {
-	it( 'should require HTMLEmbedEditing and HTMLEmbedUI', () => {
-		expect( HTMLEmbed.requires ).to.deep.equal( [ HTMLEmbedEditing, HTMLEmbedUI ] );
+describe( 'HtmlEmbed', () => {
+	it( 'should require HtmlEmbedEditing and HtmlEmbedUI', () => {
+		expect( HtmlEmbed.requires ).to.deep.equal( [ HtmlEmbedEditing, HtmlEmbedUI ] );
 	} );
 
 	it( 'should be named', () => {
-		expect( HTMLEmbed.pluginName ).to.equal( 'HTMLEmbed' );
+		expect( HtmlEmbed.pluginName ).to.equal( 'HtmlEmbed' );
 	} );
 } );

+ 10 - 10
packages/ckeditor5-html-embed/tests/htmlembedediting.js

@@ -6,14 +6,14 @@
 /* global console, document */
 
 import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
-import HTMLEmbedEditing from '../src/htmlembedediting';
+import HtmlEmbedEditing from '../src/htmlembedediting';
 import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor';
-import HTMLEmbedUpdateCommand from '../src/htmlembedupdatecommand';
-import HTMLEmbedInsertCommand from '../src/htmlembedinsertcommand';
+import HtmlEmbedUpdateCommand from '../src/htmlembedupdatecommand';
+import HtmlEmbedInsertCommand from '../src/htmlembedinsertcommand';
 import { getData as getModelData, setData as setModelData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
 import { isWidget } from '@ckeditor/ckeditor5-widget/src/utils';
 
-describe( 'HTMLEMbedEditing', () => {
+describe( 'HtmlEmbedEditing', () => {
 	let element, editor, model, view, viewDocument;
 
 	testUtils.createSinonSandbox();
@@ -24,7 +24,7 @@ describe( 'HTMLEMbedEditing', () => {
 
 		return ClassicTestEditor
 			.create( element, {
-				plugins: [ HTMLEmbedEditing ]
+				plugins: [ HtmlEmbedEditing ]
 			} )
 			.then( newEditor => {
 				editor = newEditor;
@@ -42,11 +42,11 @@ describe( 'HTMLEMbedEditing', () => {
 	} );
 
 	it( 'should have pluginName', () => {
-		expect( HTMLEmbedEditing.pluginName ).to.equal( 'HTMLEmbedEditing' );
+		expect( HtmlEmbedEditing.pluginName ).to.equal( 'HtmlEmbedEditing' );
 	} );
 
 	it( 'should be loaded', () => {
-		expect( editor.plugins.get( HTMLEmbedEditing ) ).to.be.instanceOf( HTMLEmbedEditing );
+		expect( editor.plugins.get( HtmlEmbedEditing ) ).to.be.instanceOf( HtmlEmbedEditing );
 	} );
 
 	it( 'should set proper schema rules', () => {
@@ -61,11 +61,11 @@ describe( 'HTMLEMbedEditing', () => {
 
 	describe( 'commands', () => {
 		it( 'should register htmlEmbedUpdate command', () => {
-			expect( editor.commands.get( 'htmlEmbedUpdate' ) ).to.be.instanceOf( HTMLEmbedUpdateCommand );
+			expect( editor.commands.get( 'htmlEmbedUpdate' ) ).to.be.instanceOf( HtmlEmbedUpdateCommand );
 		} );
 
 		it( 'should register htmlEmbedInsert command', () => {
-			expect( editor.commands.get( 'htmlEmbedInsert' ) ).to.be.instanceOf( HTMLEmbedInsertCommand );
+			expect( editor.commands.get( 'htmlEmbedInsert' ) ).to.be.instanceOf( HtmlEmbedInsertCommand );
 		} );
 	} );
 
@@ -279,7 +279,7 @@ describe( 'HTMLEMbedEditing', () => {
 
 				return ClassicTestEditor
 					.create( element, {
-						plugins: [ HTMLEmbedEditing ],
+						plugins: [ HtmlEmbedEditing ],
 						htmlEmbed: {
 							previewsInData: true,
 							sanitizeHtml

+ 3 - 3
packages/ckeditor5-html-embed/tests/htmlembedinsertcommand.js

@@ -7,11 +7,11 @@
 
 import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor';
 import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
-import HTMLEmbedEditing from '../src/htmlembedediting';
+import HtmlEmbedEditing from '../src/htmlembedediting';
 import { getData as getModelData, setData as setModelData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
 import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 
-describe( 'HTMLEmbedInsertCommand', () => {
+describe( 'HtmlEmbedInsertCommand', () => {
 	let editor, model, editorElement, command;
 
 	testUtils.createSinonSandbox();
@@ -22,7 +22,7 @@ describe( 'HTMLEmbedInsertCommand', () => {
 
 		return ClassicTestEditor
 			.create( editorElement, {
-				plugins: [ HTMLEmbedEditing, Paragraph ]
+				plugins: [ HtmlEmbedEditing, Paragraph ]
 			} )
 			.then( newEditor => {
 				editor = newEditor;

+ 4 - 4
packages/ckeditor5-html-embed/tests/htmlembedui.js

@@ -6,12 +6,12 @@
 /* global document */
 
 import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
-import HTMLEmbedEditing from '../src/htmlembedediting';
+import HtmlEmbedEditing from '../src/htmlembedediting';
 import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor';
-import HTMLEmbedUI from '../src/htmlembedui';
+import HtmlEmbedUI from '../src/htmlembedui';
 import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
 
-describe( 'HTMLEMbedEditing', () => {
+describe( 'HtmlEmbedEditing', () => {
 	let element, editor, view, viewDocument, htmlEmbedView;
 
 	testUtils.createSinonSandbox();
@@ -22,7 +22,7 @@ describe( 'HTMLEMbedEditing', () => {
 
 		return ClassicTestEditor
 			.create( element, {
-				plugins: [ HTMLEmbedUI, HTMLEmbedEditing ]
+				plugins: [ HtmlEmbedUI, HtmlEmbedEditing ]
 			} )
 			.then( newEditor => {
 				editor = newEditor;

+ 3 - 3
packages/ckeditor5-html-embed/tests/htmlembedupdatecommand.js

@@ -7,11 +7,11 @@
 
 import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor';
 import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
-import HTMLEmbedEditing from '../src/htmlembedediting';
+import HtmlEmbedEditing from '../src/htmlembedediting';
 import { getData as getModelData, setData as setModelData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
 import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 
-describe( 'HTMLEmbedUpdateCommand', () => {
+describe( 'HtmlEmbedUpdateCommand', () => {
 	let editor, model, editorElement, command;
 
 	testUtils.createSinonSandbox();
@@ -22,7 +22,7 @@ describe( 'HTMLEmbedUpdateCommand', () => {
 
 		return ClassicTestEditor
 			.create( editorElement, {
-				plugins: [ HTMLEmbedEditing, Paragraph ]
+				plugins: [ HtmlEmbedEditing, Paragraph ]
 			} )
 			.then( newEditor => {
 				editor = newEditor;

+ 2 - 2
packages/ckeditor5-html-embed/tests/manual/htmlembed.js

@@ -9,7 +9,7 @@ import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor'
 import ArticlePluginSet from '@ckeditor/ckeditor5-core/tests/_utils/articlepluginset';
 import sanitizeHtml from 'sanitize-html';
 import { clone } from 'lodash-es';
-import HTMLEmbed from '../../src/htmlembed';
+import HtmlEmbed from '../../src/htmlembed';
 
 const restrictedModeButton = document.getElementById( 'mode-enabled' );
 const standardModeButton = document.getElementById( 'mode-disabled' );
@@ -58,7 +58,7 @@ async function reloadEditor( config = {} ) {
 	}
 
 	config = Object.assign( config, {
-		plugins: [ ArticlePluginSet, HTMLEmbed ],
+		plugins: [ ArticlePluginSet, HtmlEmbed ],
 		toolbar: [
 			'heading', '|', 'bold', 'italic', 'link', '|',
 			'bulletedList', 'numberedList', 'blockQuote', 'insertTable', '|',