Comments (3)
麻烦提供一个在线stackblitz重现示例。
from ngx-tinymce.
在ng-alain中,app/routes/editor/tinymce/tinymce.component.html修改如下可重现问题:
<div class="content__title">
<h1>Tinymce
<small>Dependencies
<a href="//github.com/cipchk/ngx-tinymce" target="_blank">ngx-tinymce</a>
</small>
</h1>
</div>
<nz-card nzTitle="Basic">
<nz-card-tab [nzTabHeading]="'Editor 1'">
<tinymce [(ngModel)]="html" [config]="config" loading="加载中……"></tinymce>
</nz-card-tab>
<nz-card-tab [nzTabHeading]="'Editor 2'">
<tinymce [(ngModel)]="html" [config]="config_classic" loading="loading……"></tinymce>
</nz-card-tab>
</nz-card>
<nz-card nzTitle="Classic">
<tinymce [(ngModel)]="html" [config]="config_classic" loading="loading……"></tinymce>
</nz-card>
1、Editor 2中的实例显示不了。
2、在reuseTab栏中关闭该页,再重新打开,Editor 1 和 Editor 2中的实例均显示不了。
from ngx-tinymce.
这个问题有点复杂,其实原因不在 ngx-tinymce 而在于 nz-card 的机制引起的,tinymce 在加载过程中需要一个明确的容器,但又由于 nz-card 的 tab 标签实现原因,导致 editor2 已经实例过,但实际在实例过程中容器还无法被渲染在DOM树中,结果渲染失败。
当然 reuse 也是同理。
目前恐怕没办法使用 ngx-tinymce 解决这个问题,或许你可以在外部当 nz-card 标签变更回调时重新渲染一个 tinymce 编辑器,除此之外没有什么好的办法。
from ngx-tinymce.
Related Issues (20)
- bootcss cdn 路径会包含多个 `//` 时无法找到
- Fix package json again HOT 1
- Disabled function is not working HOT 1
- 在ie下使用form-group时无法获取值并且值无法回填 HOT 6
- How to give placeholder HOT 8
- tinymce js文件加载失败 ? HOT 4
- ngx-tinymce组件,第二次打开页面不显示
- ngx-tinymce怎么初始化,tab和reuse这种切换之后就有问题了,是否需要重新初始化一下。 HOT 1
- after installing this lab i got below error while compile on angula 4.4 HOT 1
- 当值为“”空时显示undifined HOT 1
- 开启内联模式时会报错。
- 在ng-zorro的modal中使用,组件会渲染失败 HOT 1
- No way to create custom toolbar button HOT 4
- Get cursor position
- 使用最新的tinymce6.X版本,会报错
- ngx TinyMCE - Get plain text HOT 1
- 延迟加载失效
- Error with latest version - has no exported member 'ɵɵNgModuleDeclaration'. HOT 1
- Fix package.json
- 如何配置图片本地上传 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-tinymce.