CCM NG: Restructing JavaScript parts
git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@5676 8810af33-2d31-482b-a856-94f89814c4dfccm-docs
|
|
@ -5,13 +5,18 @@
|
|||
"build": "webpack"
|
||||
},
|
||||
"dependencies": {
|
||||
"ccm-cms-js": "7.0.0"
|
||||
"ccm-cms-pagemodelseditor": "7.0.0",
|
||||
"ccm-cms-tinymce": "7.0.0",
|
||||
"tinymce": "^4.8.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ts-loader": "^4.3.0",
|
||||
"tslint": "^5.10.0",
|
||||
"typescript": "^2.8.3",
|
||||
"webpack": "^4.8.1",
|
||||
"webpack-cli": "^2.1.3"
|
||||
"@types/tinymce": "^4.5.16",
|
||||
"@types/webpack-env": "^1.13.6",
|
||||
"file-loader": "^1.1.11",
|
||||
"ts-loader": "^4.4.2",
|
||||
"tslint": "^5.11.0",
|
||||
"typescript": "^3.0.1",
|
||||
"webpack": "^4.16.4",
|
||||
"webpack-cli": "^3.1.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,10 +38,20 @@
|
|||
<artifactId>requirejs-domready</artifactId>
|
||||
<version>2.0.1-2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<!-- <dependency>
|
||||
<groupId>org.librecms</groupId>
|
||||
<artifactId>ccm-cms-js</artifactId>
|
||||
<version>7.0.0-SNAPSHOT</version>
|
||||
</dependency> -->
|
||||
<dependency>
|
||||
<groupId>org.librecms</groupId>
|
||||
<artifactId>ccm-cms-pagemodelseditor</artifactId>
|
||||
<version>7.0.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.librecms</groupId>
|
||||
<artifactId>ccm-cms-tinymce</artifactId>
|
||||
<version>7.0.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
|
@ -85,10 +95,10 @@
|
|||
<goal>install-node-and-npm</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<nodeVersion>v8.11.1</nodeVersion>
|
||||
<nodeVersion>v8.11.4</nodeVersion>
|
||||
</configuration>
|
||||
</execution>
|
||||
<!--<execution>
|
||||
<!-- <execution>
|
||||
<id>npm link ccm-pagemodelseditor</id>
|
||||
<goals>
|
||||
<goal>npm</goal>
|
||||
|
|
@ -96,8 +106,26 @@
|
|||
<configuration>
|
||||
<arguments>link ccm-pagemodelseditor</arguments>
|
||||
</configuration>
|
||||
</execution>-->
|
||||
</execution> -->
|
||||
<execution>
|
||||
<id>npm link ccm-cms-pagemodelseditor</id>
|
||||
<goals>
|
||||
<goal>npm</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<arguments>link ccm-cms-pagemodelseditor</arguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>npm link ccm-cms-tinymce</id>
|
||||
<goals>
|
||||
<goal>npm</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<arguments>link ccm-cms-tinymce</arguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
<!--<execution>
|
||||
<id>npm link ccm-cms-js</id>
|
||||
<goals>
|
||||
<goal>npm</goal>
|
||||
|
|
@ -105,7 +133,7 @@
|
|||
<configuration>
|
||||
<arguments>link ccm-cms-js</arguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
</execution>-->
|
||||
<execution>
|
||||
<id>npm install</id>
|
||||
<goals>
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
import "ccm-cms-pagemodelseditor";
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
import * as tinymce from "tinymce";
|
||||
|
||||
import "tinymce/themes/modern/theme";
|
||||
|
||||
import "tinymce/plugins/code";
|
||||
import "tinymce/plugins/lists";
|
||||
import "tinymce/plugins/nonbreaking";
|
||||
import "tinymce/plugins/noneditable";
|
||||
import "tinymce/plugins/paste";
|
||||
import "tinymce/plugins/searchreplace";
|
||||
import "tinymce/plugins/table";
|
||||
import "tinymce/plugins/template";
|
||||
import "tinymce/plugins/visualblocks";
|
||||
import "tinymce/plugins/wordcount";
|
||||
|
||||
import "ccm-cms-tinymce";
|
||||
|
||||
// Atom IDE reports an error here, but thats not correct. The Typescript
|
||||
// compiler uses the definitions from @types/webext-env automatically.
|
||||
require.context(
|
||||
"file-loader?name=[path][name].[ext]"
|
||||
+ "&context=node_modules/tinymce!tinymce/skins",
|
||||
true,
|
||||
/.*/,
|
||||
);
|
||||
|
||||
tinymce.init({
|
||||
//menubar: "tools",
|
||||
plugins: "code insert-media lists nonbreaking noneditable paste searchreplace table template visualblocks wordcount",
|
||||
selector: ".tinymce",
|
||||
//toolbar: "code",
|
||||
});
|
||||
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 64 B After Width: | Height: | Size: 64 B |
|
Before Width: | Height: | Size: 68 B After Width: | Height: | Size: 68 B |
|
Before Width: | Height: | Size: 70 B After Width: | Height: | Size: 70 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 354 B |
|
Before Width: | Height: | Size: 329 B After Width: | Height: | Size: 329 B |
|
Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 331 B |
|
Before Width: | Height: | Size: 342 B After Width: | Height: | Size: 342 B |
|
Before Width: | Height: | Size: 340 B After Width: | Height: | Size: 340 B |
|
Before Width: | Height: | Size: 336 B After Width: | Height: | Size: 336 B |
|
Before Width: | Height: | Size: 338 B After Width: | Height: | Size: 338 B |
|
Before Width: | Height: | Size: 343 B After Width: | Height: | Size: 343 B |
|
Before Width: | Height: | Size: 321 B After Width: | Height: | Size: 321 B |
|
Before Width: | Height: | Size: 323 B After Width: | Height: | Size: 323 B |
|
Before Width: | Height: | Size: 344 B After Width: | Height: | Size: 344 B |
|
Before Width: | Height: | Size: 338 B After Width: | Height: | Size: 338 B |
|
Before Width: | Height: | Size: 328 B After Width: | Height: | Size: 328 B |
|
Before Width: | Height: | Size: 337 B After Width: | Height: | Size: 337 B |
|
Before Width: | Height: | Size: 350 B After Width: | Height: | Size: 350 B |
|
Before Width: | Height: | Size: 336 B After Width: | Height: | Size: 336 B |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |