ckeditor

How to add default classname on the images i upload with CKEditor?

旧巷老猫 提交于 2019-12-11 16:43:58
问题 Like the topic says: How to add default classname on the images i upload with CKEditor? Cant relly find any information regarding this 回答1: CKEDITOR.on( 'instanceReady', function( ev ) { var editor = ev.editor; var dataProcessor = editor.dataProcessor, htmlFilter = dataProcessor && dataProcessor.htmlFilter; htmlFilter.addRules( { elements: { $: function (element) { if (element.name == 'img') { if (!element.attributes['class']){ element.attributes['class'] = "helloworld"; } } return element; }

disable dragging in ckeditor

拟墨画扇 提交于 2019-12-11 16:13:33
问题 I am facing an issue with my ckeditor. I am loading an entire page of HTML into the ckeditor. It's loading and showing fine. I want to let users edit only the data (texts), but not its alignment. But in editor each div is draggable (like the textbox in office word). How can I lock these areas. 回答1: You might consider using Jeditable instead of ckeditor. That way you can individually allow users to edit each text block. 回答2: I've used the following JS code before to disable text selection. You

CKEditor4 EnhancedImage Plugin Image added event or: How to add custom class to image

三世轮回 提交于 2019-12-11 15:43:48
问题 I'm playing around with CKEditor4 and I want to add a custom class to all images that I inserted. Unfortunately it seems as the dataFilter rule which works for adding classes on inserted <p> does not work on <img> -images. Image plugin I use is enhancedImage ("image2") and I do not upload the image, I pick it from a fileBrowser instance. My code: $(function(){ var editor = CKEDITOR.replace( 'article-ckeditor', { customConfig: '/vendor/ckeditor/ckeditor.config.js', filebrowserImageBrowseUrl: '

How to add CKEditor RTE to typo3 Backend Module with the API?

落花浮王杯 提交于 2019-12-11 15:29:33
问题 This question is similar to that one: RTE in own backend module based on Extbase and Fluid but not the same, so i created a new question. I create a comment-extension for typo3 Version 8.7.7 I have added a RTE Editor (CKEditor) to a textarea field in my BackendModule. Therefore i have the following TCA in my comment-model: 'text' => [ 'exclude' => true, 'label' => 'LLL:EXT:rmcomment/Resources/Private/Language/locallang_db.xlf:tx_rmcomment_domain_model_comment.text', 'config' => [ 'type' =>

ckeditor5 & CakePHP 2.3: How do I make the tables work?

血红的双手。 提交于 2019-12-11 15:15:08
问题 I have a CakePHP 2.3 app that for years has had whatever version CK Editor. I'm working in developing mode, hoping to upgrade it to CKEditor 5. I easily and quickly got rid of all old code and files to make ckeditor5 work just fine in its most basic version. This was a go! However, I do need tables. I'm now working on getting the table feature set up and just cannot get it working. Here's their doc on this: https://docs.ckeditor.com/ckeditor5/latest/features/table.html npm install --save

Symfony 3 - CKEditor not correctly installed in PROD

懵懂的女人 提交于 2019-12-11 14:55:40
问题 on my site, I have the CKEditor bundle installed. It worked in PREPROD. But by switching to PROD, CKEditor does not work anymore. It is installed however, can someone please help me? I've : /web/ckeditor /web/bundle/pages/ckeditor /src/Site/PagesBundle/Resources/Public/ckeditor But nothing is working. And if i try this : php bin/console ckeditor:install I've In CKEditorInstaller.php line 334: Unable to download CKEditor ZIP archive from "https://github.com/ckeditor/ckeditor-releases/archive

CKEditor display on top of all the content flex

半腔热情 提交于 2019-12-11 14:34:46
问题 I have found the lot and got one editor which i use in my project (Flex Web application). I have used CKEditor from this link. <ckeditor:CKEditor id="editor1" width="100%" height="100%"> <ckeditor:htmlText> <![CDATA[ ]]> </ckeditor:htmlText> </ckeditor:CKEditor> It's working ok in my project. But, there is one issue i am facing. Problem: I have one alert message and Custom popup container. I want to display that both on top of the editor. But it hide behind the editor. I want to display on

Is there a way to build release version of CKEditor unmodified

前提是你 提交于 2019-12-11 12:17:55
问题 I've cloned the source repo from here, and I want to build everything into one file, but don't want this file to be uglified. Is there any settings I need to tweak in the build files to prevent uglification? I've tried searching for uglify or minify in the project files but have found nothing. 回答1: The following build property prevents minification: --leave-js-unminified It could be added to the dev/build.sh config here: java -jar ckbuilder/$CKBUILDER_VERSION/ckbuilder.jar --build ../../

Want to remove the <br type=“_moz”> tag in CKEDITOR 4.2.0

最后都变了- 提交于 2019-12-11 11:55:57
问题 With the inline editor CKEDITOR 4.2.0 and Firefox 23.0.1 the inner html of my editable div tags are enriched with <br type="_moz"> . It is not inserted with IE. I can easily find and replace this tag using javascript. How can I handle this in the config.js file globally for all my inline editable divs? 回答1: You should not get data from inline editor by element.innerHTML (or $(element).html() ). There's a significant difference between what's really in there and what will CKEditor returns from

How to paste excel table in ckeditor?

送分小仙女□ 提交于 2019-12-11 10:51:28
问题 How to paste excel table in ckeditor ? In the demo I'm available to paste formatted table but in my case the table is pasted as plain text. I believe it is something to do with the config of ckeditor but couldn't find it. Should I install some plugins ? I've tried this in config.js CKEDITOR.editorConfig = function(config) { config.pasteFromWordPromptCleanup = false; config.pasteFromWordRemoveFontStyles = false; config.forcePasteAsPlainText = false; config.ignoreEmptyParagraph = false; config