ckeditor5

CKEditor 5 and ReactJS: I can't edit the toolbar

耗尽温柔 提交于 2020-01-16 19:16:28
问题 I'm reading the documentation (link) but I'm not sure about how to edit the toolbar. This is the editor component: import React, { Component } from 'react'; import CKEditor from '@ckeditor/ckeditor5-react'; import ClassicEditor from '@ckeditor/ckeditor5-build-classic'; class EditorComponent extends Component { constructor(props) { super(props); this.state = { id: props.id, content: props.content, handleWYSIWYGInput: props.handleWYSIWYGInput, editor: ClassicEditor } } render() { return ( <div

CKEditor 5 and ReactJS: I can't edit the toolbar

房东的猫 提交于 2020-01-16 19:13:25
问题 I'm reading the documentation (link) but I'm not sure about how to edit the toolbar. This is the editor component: import React, { Component } from 'react'; import CKEditor from '@ckeditor/ckeditor5-react'; import ClassicEditor from '@ckeditor/ckeditor5-build-classic'; class EditorComponent extends Component { constructor(props) { super(props); this.state = { id: props.id, content: props.content, handleWYSIWYGInput: props.handleWYSIWYGInput, editor: ClassicEditor } } render() { return ( <div

Got ckeditor-duplicated-modules when integrate ckeditor5 into Angular project

☆樱花仙子☆ 提交于 2020-01-15 05:40:28
问题 I tried to integrate ckeditor5 into my angular project but got ckeditor-duplicated-modules . I tried many ways Add ckeditor classic build only, it works fine Add ckeditor classic build and Base64ImageUpload plugin, it does not work Extend my ClassicEditor from ClassicEditorBase but it does not work Any one got the same issue ? and any solution for this one ? 回答1: You should create custom build if you want to add modules. You can read about Custom Builds here. Steps: Fork one of the official

How to implement custom image uploader for CKEditor5 in Angular 5?

别来无恙 提交于 2020-01-02 10:23:13
问题 I am looking for an example showing an implementation of custom image uploader for CKEditor 5 using Angular 5. 回答1: There's no need for the Angular-specific version of that adapter. You can use for example this: https://github.com/pourquoi/ckeditor5-simple-upload or try to integrate it with the CKFinder. Then, all you need to do is to pass the configuration object to the <ckeditor [config]='config'> component. Don't forget to set allowJs: true in your tsconfig.json file to allow bundling

Set common key prefix for S3 bucket per CKFinder 3 instance

混江龙づ霸主 提交于 2019-12-25 02:15:14
问题 How can I make the CKFinder ASP.net S3 integration load content from a dynamic key prefix rather than just a root location? I'm using CKEditor 5 and CKFinder 3 with the ASP.net Connector to allow image upload directly to an S3 bucket. The web application we are connecting this all to is not an ASP.net application. Setting is up was simple enough by following the documentation. However, our product is SaaS, so each time the CKFinder is launched, I need it to target a different key prefix in

PasteFromOffice option in classic ckeditor 5

こ雲淡風輕ζ 提交于 2019-12-25 01:38:04
问题 I am trying to setup classic ckeditor in my angularjs application. I have installed via npm and classic ckeditor 5 is up. I am trying to copy paste contents to ckeditor but it is failing with the error saying filerepository-no-upload-adapter: Upload adapter is not defined. Does this error mean the final classic ck editor build(12.3.1) doesnt have this plugin? Below is the code which I am trying. ClassicEditor.create( document.querySelector( '#editor' ) ) .catch( error => { console.error(

CKEditor 5 showing video element, but plain HTML inserted in a div does not show the element

吃可爱长大的小学妹 提交于 2019-12-24 20:30:46
问题 I am creating a lesson editor. The user can edit the content (text, videos, links, images etc) or view the final result (the rendered html). The editor works fine, but when I show the rendered html the linked youtube videos are not visible. This is the editor part, as you can see the video linked is visible: And this is the 'rendered' version; the video is missing (it looks like it's not rendering the figure tag and the oembed tag, but why?): The html is: <h2>This is the header of this

CKEditor5 & Angular2 - Getting exact position of caret on click inside editor to grab data

社会主义新天地 提交于 2019-12-24 06:27:17
问题 In Angular2+, I'm trying to get the exact position of the caret when I click inside a CKEditor5 Balloon Editor instance. I will have several instances on the page, each dynamically represented through a @ViewChildren and a QueryList (each instance is a separate editor). On a high level, I'm trying to trigger a method when a user clicks inside a Balloon Editor, and it will store all the text before the cursor in a variable, and then store all the text after a cursor in another variable. i.e.

How to set CKEditor 5 height

大憨熊 提交于 2019-12-22 11:27:09
问题 Using CKeditor angular component How to set the editor height? According to the docs, it can be done by setting the editor style to: min-height: 500px !important; But it doesn't work! 回答1: If you add it to the global stylesheet the following should work: .ck-editor__editable_inline { min-height: 500px !important; } But if you want to style through the component.css you need to type this: :host ::ng-deep .ck-editor__editable_inline { min-height: 500px !important; } 来源: https://stackoverflow

CKEditor 5 - How to insert some HTML (aka. where's the source mode)?

北慕城南 提交于 2019-12-21 07:34:01
问题 I want to be able to switch from WYSIWYG to plain HTML to e.g. insert IFrame with a Youtube video. So far with the standard CKEditor 5 builds there is no documentation on how to do that. Is there an equivalent of the Source Editing Area plugin but for CKEditor 5? 回答1: Your question touches two complicated topics: Whether source mode makes any sense in general. Whether it is possible to allow inputting (and editing) any HTML to CKEditor 5. They've been already discussed in the "View Source"