如何粘贴 Excel 和 MS Word table 并在 Angular 的网站上进行编辑
How can I paste Excel and MS Word table and edit it on website in Angular
这是我想要实现的目标:
A user can copy table from Excel/MS-Word and then paste it to my
angular website which he/she can then save it to server as well.
我怎样才能做到这一点?任何建议将不胜感激。
我正在使用 ngx-editor 因为它很容易实现而且 UI 更好
通过 npm 安装
npm install ngx-editor --save
导入ngx-editor
模块
import { NgxEditorModule } from 'ngx-editor';
@NgModule({
imports: [ NgxEditorModule ]
})
然后在html
<app-ngx-editor [placeholder]="'Enter text here...'" [spellcheck]="true" [(ngModel)]="htmlContent"></app-ngx-editor>
默认情况下它的高度设置不正确,但您可以像这样设置最小高度minHeight="250px"
If you are getting error make sure you have imported FormsModule
as module
Make sure HttpClientModule
is also installed and imported
这是我想要实现的目标:
A user can copy table from Excel/MS-Word and then paste it to my angular website which he/she can then save it to server as well.
我怎样才能做到这一点?任何建议将不胜感激。
我正在使用 ngx-editor 因为它很容易实现而且 UI 更好
通过 npm 安装
npm install ngx-editor --save
导入ngx-editor
模块
import { NgxEditorModule } from 'ngx-editor';
@NgModule({
imports: [ NgxEditorModule ]
})
然后在html
<app-ngx-editor [placeholder]="'Enter text here...'" [spellcheck]="true" [(ngModel)]="htmlContent"></app-ngx-editor>
默认情况下它的高度设置不正确,但您可以像这样设置最小高度minHeight="250px"
If you are getting error make sure you have imported
FormsModule
as moduleMake sure
HttpClientModule
is also installed and imported