8
0
Просмотр исходного кода

Fix: reverted change in ViewConverterBuilder.
Docs: fixed doc in Matcher.

Szymon Cofalik 8 лет назад
Родитель
Сommit
5bc0776f37

+ 1 - 1
packages/ckeditor5-engine/src/conversion/buildviewconverter.js

@@ -141,7 +141,7 @@ class ViewConverterBuilder {
 	 * @param {String|RegExp} [value] View attribute value.
 	 * @returns {module:engine/conversion/buildviewconverter~ViewConverterBuilder}
 	 */
-	fromAttribute( key, value = /.+/ ) {
+	fromAttribute( key, value = /.*/ ) {
 		let pattern = {};
 
 		if ( key === 'style' || key === 'class' ) {

+ 2 - 2
packages/ckeditor5-engine/src/view/matcher.js

@@ -131,8 +131,8 @@ export default class Matcher {
 	 *			match: {
 	 *				name: true,
 	 *				attribute: [ 'title', 'href' ],
-	 *				classes: [ 'foo' ],
- 	 *				styles: [ 'color', 'position' ]
+	 *				class: [ 'foo' ],
+	 *				style: [ 'color', 'position' ]
 	 *			}
 	 *		}
 	 *