ckeditor

TYPO3 9.5.4 CKEditor RTE deletes style attributes

Deadly 提交于 2021-01-28 18:44:08
问题 I updated a TYPO3 website from 7->8->9. Now the problem is that the RTE CKEditor keeps deleting style attributes and even styles. So and old Element with content: <div class="mobilr"> <table height="655" width="972" style="vertical-align: middle; background-color: rgb(255, 255, 255); border-style: solid; border-color: rgb(187, 187, 187);" class="centertable"> <tbody> <tr style="vertical-align: middle;"> <td> <p> </p> .... is loaded in the editor as: <table class="centertable" style="height

Unable to type in CKEditor with Selenium + Chrome 62

狂风中的少年 提交于 2021-01-28 12:57:12
问题 In one of my Selenium test cases, I need to type something into a CKEditor text area. It works fine with Chromedriver 2.20 + Chrome 59 . But since I upgraded to Chrome 62, the textarea isn't detected anymore. Selenium doesn't throw any exception, it just doesn't type in the CKEditor and goes on with the next step. Method: WebElement element = driver.findElement(By.cssSelector("some-cute-custom-angular-selector")); new Actions(driver).moveToElement(element).click().perform(); new Actions

Unable to type in CKEditor with Selenium + Chrome 62

流过昼夜 提交于 2021-01-28 12:56:28
问题 In one of my Selenium test cases, I need to type something into a CKEditor text area. It works fine with Chromedriver 2.20 + Chrome 59 . But since I upgraded to Chrome 62, the textarea isn't detected anymore. Selenium doesn't throw any exception, it just doesn't type in the CKEditor and goes on with the next step. Method: WebElement element = driver.findElement(By.cssSelector("some-cute-custom-angular-selector")); new Actions(driver).moveToElement(element).click().perform(); new Actions

how to use CKEditor 4.5.7 in a ASP.net project

跟風遠走 提交于 2021-01-28 04:59:02
问题 i am highly confused why i cannot intergrate the latest version of CKEditor in a ASP.net website. Which coding technologies is the 4.5.7 version comapible with (ie: php/jsp/ect)? Isnt CKEditor for any HTML page? Currently the latest ASP.net version is 3.6 which lacks support from many new plugins. 回答1: I made a quick test: download and decompress the .Net package from CKEdit site (3.6); download the latest version of the javascript files (4.5.7); check that the samples provided with the .Net

How to initialize CKEditor textarea line breaks as like html textarea line breaks

两盒软妹~` 提交于 2021-01-28 04:43:06
问题 HTML textareas can recognize line breaks (enter button) and i can save the element's text value into database. Then i can get those data, set it on any textarea, i still have line breaks (no problem until here). CKEditor textarea puts <p> or <br /> after line breaks. When i remove these tags, CKEditor cannot recognize there's a line break. Purpose : I'm using a word counter plugin with CKEditor, so i need to use CKEditor as like a textarea. I need the plain text value. I tried these so far :

How to add wiris to django-ckeditor

可紊 提交于 2021-01-28 04:04:01
问题 I want to use CKEditor+WIRIS plugin in my Django-based project. I successfully installed django-ckeditor. But I dont know which WIRIS plugin should be used. In download page, there are some plugins for php, Java, ASP and... But there is not any plugin for Django or python. Can I use one of these plugins to add it to django-ckeditor? which one and how? 来源: https://stackoverflow.com/questions/28537060/how-to-add-wiris-to-django-ckeditor

How to change plugin setting dynamically in CKEDITOR?

老子叫甜甜 提交于 2021-01-28 03:50:13
问题 How can I manage to change a setting of a plugin dynamically when CKEDITOR instances are created? I wrote in a custom config.js: config.wordcount = { // Whether or not you want to show the Word Count showWordCount: false, // Whether or not you want to show the Char Count showCharCount: true }; What I want to do is to set maxCharCount to something, depending on the CKEDITOR instance. Is there an easy way to achieve this? 回答1: Found the solution: CKEDITOR.replace('field', { wordcount: {

CKeditor remove extra whitespace

两盒软妹~` 提交于 2021-01-27 07:06:37
问题 I'm using CKeditor for a text editor and it won't remove extra whitespace. I've tried $foo = strip_tags($foo); $foo = preg_replace('/\s+/',' ',$foo); I don't know of any other way to remove whitespace from here. Any ideas? Thanks 回答1: try these: $foo = preg_replace('/\s{2,}/', ' ', $foo); or $foo = preg_replace('/( )+/', ' ', $foo); or this one removes line breaks too $foo = trim(preg_replace('/[\s\t\n\r\s]+/', ' ', $foo)) Update Try this one: $foo = trim(preg_replace('/( )+|\s\K\s+/','',$foo

CKEditor 5 insert image by external url

余生颓废 提交于 2021-01-27 06:09:08
问题 I am wondering how to insert an image by it's URL only (a user gets it from some other website). I need to implement a simple img src="" in CKEditor 5. The problem is that by default, the editor requires me to upload an image while I need to insert an external url. I have read many related topics (1, 2, 3) but did not find a problem similar to mine. I even do not need the special button, maybe I can somehow just type img src="myurl" (directly typing it inside the editor did not work for me

CKEditor 5 insert image by external url

自作多情 提交于 2021-01-27 06:09:05
问题 I am wondering how to insert an image by it's URL only (a user gets it from some other website). I need to implement a simple img src="" in CKEditor 5. The problem is that by default, the editor requires me to upload an image while I need to insert an external url. I have read many related topics (1, 2, 3) but did not find a problem similar to mine. I even do not need the special button, maybe I can somehow just type img src="myurl" (directly typing it inside the editor did not work for me