我正在为我的网站后端寻找一个基于网络的HTML编辑器.我缩小到3 - Nicedit(好,但不再保持),tinymce和ckeditor.
虽然我将使用tinymce或ckeditor,但我也在寻找一个插件来管理我可以插入HTML区域的媒体(图片,视频等).当然还有CKFinder和MCFilemanager,但它们不是开源的.
我想知道是否有任何开源插件?此外,如果基于Web的开源文本编辑器有更好的选择,请建议.
谢谢
我为这两种排序卡获得了不同的输出,有人可以告诉我为什么吗?
1.
INCLUDE COND=((1,3,CH,NE,C'ABC',AND,5,3,CH,NE,C'PQR'),OR,
(1,3,CH,NE,C'CAB'),OR,
(1,3,CH,NE,C'CBA'),OR,
(1,3,CH,NE,C'ABC',AND,5,3,CH,NE,C'PQR'))
SORT FIELDS=COPY
Run Code Online (Sandbox Code Playgroud)
2.
OMIT COND=((1,3,CH,EQ,C'ABC',AND,5,3,CH,EQ,C'PQR'),OR,
(1,3,CH,EQ,C'CAB'),OR,
(1,3,CH,EQ,C'CBA'),OR,
(1,3,CH,EQ,C'ABC',AND,5,3,CH,EQ,C'PQR'))
SORT FIELDS=COPY
Run Code Online (Sandbox Code Playgroud)
基本上,这是NOT-EQUAL时的INCLUDE和EQUAL时的OMIT.
我试图在ng2中找到路由,我遇到了一个奇怪的问题.当用户到达'/ home'时,我尝试设置超时以将我导航回'/'.
这有效:
export class HomeComponent implements OnInit {
constructor(private router: Router) { }
ngOnInit() {
setTimeout(() => {this.router.navigate(['/']);}, 2000);
}
}
Run Code Online (Sandbox Code Playgroud)
但这不是:
export class HomeComponent implements OnInit {
constructor(private router: Router) { }
ngOnInit() {
setTimeout(function () {this.router.navigate(['/']);}, 2000);
}
}
Run Code Online (Sandbox Code Playgroud)
它失败了 - EXCEPTION: Cannot read property 'navigate' of undefined
为了使它工作,我必须将其更改为:
export class HomeComponent implements OnInit {
constructor(private router: Router) { }
ngOnInit() {
var _router = this.router;
setTimeout(function (_router) {_router.navigate(['/']);}, 2000, _router);
}
}
Run Code Online (Sandbox Code Playgroud)
顺便说一句,这是TypeScript编译的方式() => {} …
angular ×1
ckeditor ×1
include ×1
javascript ×1
jcl ×1
mainframe ×1
open-source ×1
sorting ×1
syncsort ×1
text-editor ×1
this ×1
tinymce ×1
typescript ×1