Include rangy-classapplier before rangy-highlighter
MODIFY
build-config/RequireJS_config_multiple-bundles_external-libs.js
build-config/RequireJS_config_multiple-bundles_external-libs.js
@@ -26,7 +26,7 @@ require.config({
include: ['jquery', 'underscore', 'readium_cfi_js',
'URIjs', 'punycode', 'SecondLevelDomains', 'IPv6',
'jquerySizes', 'domReady', 'eventEmitter', 'console_shim',
- 'rangy', 'rangy-core', 'rangy-textrange', 'rangy-highlighter', 'rangy-classapplier', 'rangy-position', 'cssom'],
+ 'rangy', 'rangy-core', 'rangy-textrange', 'rangy-classapplier', 'rangy-highlighter', 'rangy-position', 'cssom'],
}
]
});

MODIFY
lib/rangy/rangy.js
lib/rangy/rangy.js
define(["rangy-core",
- "rangy-highlighter",
"rangy-classapplier",
+ "rangy-highlighter",
"rangy-textrange",
"rangy-position"
@@ -11,7 +11,7 @@ define(["rangy-core",
"rangy-selectionsaverestore"
*/
],
-function (core, textrange, highlighter, cssclassapplier, position
+function (core, textrange, cssclassapplier, highlighter, position
//, domReady
/* serializer, selectionsaverestore */
) {

Include rangy-classapplier before rangy-highlighter