ckeditor4.x

How to set responsive images with CKEditor 5?

。_饼干妹妹 提交于 2020-03-05 02:16:07
问题 Using the Simple Upload Adapter, according to the CKEditor 5 documentation upon a successful image upload, the server should return either: This for a single image: { default: 'http://example.com/images/image–default-size.png' } Or this for multiple (i.e. for the srcset attribute) { default: 'http://example.com/images/image–default-size.png', '160': 'http://example.com/images/image–size-160.image.png', '500': 'http://example.com/images/image–size-500.image.png', '1000': 'http://example.com

Cannot set property 'dir' of undefined ckeditor in Angular2

本秂侑毒 提交于 2020-01-24 03:51:31
问题 I am getting "Cannot set property 'dir' of undefined" whenever I try to load Ckeditor. I am using angular-cli for development of my Angular2 application. CKEditor version : 4.4.7 When i run the application using ng serve. This issue doesn't reproduce but when i run this application using ssl then i get this issue for CKEditor. I have added basepath in index.html but still facing the issue. I have tried this : 1) <script type="text/javascript"> window.CKEDITOR_BASEPATH = '//localhost/assets

CKEditor custom styles from file not showing

前提是你 提交于 2020-01-07 04:30:35
问题 I can't seem to add my own CSS file to the CKEditor. I'm downloading a custom version 4.5.8 and include the "StyleSheet Parser" plugin. The "Styles" list has the default styles, but not the ones from my css file. This the code: CKEDITOR.config.contentsCss = '../../../css/test.css'; CKEDITOR.replace('editor1'); The editor is loaded successfully, but the "Styles" list does not contain my styles. The location of my css files seems right, when I try other paths I get an error. This is my test.css

Ckeditor uploadimage 404 error / plugin setup

﹥>﹥吖頭↗ 提交于 2020-01-05 06:31:30
问题 I'm trying to add the adding of images into with the editor, with drag 'n drop. I wanted to update CK editor anyway, so after some reading I created a new CKeditor download via the package building, including the plugin uploadimage - http://ckeditor.com/addon/uploadimage When I try to drag 'n drop an image in it, I'll see a green bar saying upload succesful and for less then a second I see the image in the editor. Then a red bar is showing. saying: 'HTTP error occurred during file upload (404

Preventing CKEditor from removing classes assigned in source mode?

泪湿孤枕 提交于 2019-12-31 05:41:08
问题 I want to be able to add a class attribute to a UL in source mode of CKEditor. When I do that and switch back to the normal editor mode the <ul class="xxxx"> becomes <ul> How can I get it to not remove the class tag? 回答1: This happens because of Advanced Content Filter (ACF). You need to use extraAllowedContent like this: config.extraAllowedContent = 'ul(*)'; to allow any CSS class for ul element. You can be more specific and allow only certain CSS classes, like this: config

Error with DropDownList when CKEditor is also in use on page [duplicate]

怎甘沉沦 提交于 2019-12-25 17:06:35
问题 This question already has answers here : The ViewData item that has the key 'XXX' is of type 'System.Int32' but must be of type 'IEnumerable<SelectListItem>' (6 answers) Closed 3 years ago . I have a dropdownlist that is working just fine, but when I have add a CKEditor (ckeditor-standard 4.5.7) to handel EditorFor helper I'm getting this error: The ViewData item that has the key 'OccupationId' is of type 'System.Int32' but must be of type 'IEnumerable'. Removing the CkEditor solve this error