ckeditor

how to pass custom fields to $_POST or $_GET in CKEdtior Upload dialog?

时光怂恿深爱的人放手 提交于 2019-12-11 04:23:57
问题 For example I have add 2 inputs: infoTab.add( { type : 'text', hidden : false, id: 'image_group', label: 'A', default: '' }); infoTab.add( { type : 'text', hidden : false, id: 'image_size', label: 'B,', default: '' }); I fill these fields mannualy with random data and when I press "Send it to the server" I can't see in $_POST or $_GET these values or keys? What I must change to send this custom form elements to Server? Thank you! 来源: https://stackoverflow.com/questions/40867123/how-to-pass

Typo3 CKEditor image from FAL

半世苍凉 提交于 2019-12-11 04:19:55
问题 I set up a fresh TYPO3 8.7.4 installation with CKEditor and rte_ckeditor_image to get images from FAL. In the documentation from rte_ckeditor_image it says: The maximum dimensions relate to the configuration for magic images which have to be set in Page TSConfig: # Page TSConfig RTE.default.buttons.image.options.magic { maxWidth = 1020 # Default: 300 maxHeight = 800 # Default: 1000 } I did this, but still I can't make the width of an image bigger than 300px. I looked at the source code from

CKEditor4 <br> tags are inserted inside empty <p></p> blocks

元气小坏坏 提交于 2019-12-11 04:15:09
问题 I used the following way to render some content into div by using CKEditor4: // the config is my CKEDITOR.config // this._editorElement is the element in which I will render my CKEditor const myEditor: CKEDITOR.editor = CKEDITOR.inline(this._editorElement, config); myEditor.setData("<p></p><div>aaa</div><p></p><div>bbb</div>"); However, after the content was rendered into the page, it changed into: <p><br></p><div>aaa</div><p><br></p><div>bbb</div> . As you can see, <br> is inserted into

Replace CKEditor toolbar images with font awesome icons

旧巷老猫 提交于 2019-12-11 03:59:43
问题 Is there some way to replace the default toolbar images (e.g. Bold, Italic, etc.) with Font Awesome icons? 回答1: I know this is an old issue, but on a plugin by plugin basis I've been able to add font-awesome icons to ckeditor buttons with the following code inside the plugin's init function. In my case my plugin was called trim : //Set the button name and fontawesome icon var button_name = 'trim'; var icon = 'fa-scissors'; //When a ckeditor with this plugin in it is created, find the button /

Setting font-size and font-family in CKEditor

牧云@^-^@ 提交于 2019-12-11 03:49:27
问题 I am working with ckeditor I want to ask how can we set the font-family and font-size in this plugin, I have tried using CKEDITOR.config.font_defaultLabel = 'Arial'; CKEDITOR.config.fontSize_defaultLabel = '12px'; but these commands just change the front-end (font name and size) Whats the way out? 回答1: The most future-proof method(1) is to override the default CSS styles for CKEditor content that you want to change in a separate file, added to your editor configuration through the config

ckeditor and jquery UI dialog not working

时光怂恿深爱的人放手 提交于 2019-12-11 03:47:52
问题 I tried endlessly now you resolve this utter frustrating situation I have been having. I am trying to get ckEditor to work within a jQuery UI dialog box. The editor is included perfectly, and it replaces the textarea with the ckeditor skin, but I am unable to edit/add content in the content block. The only working solution I have seen now was if I click on "Source Code" within the editor and unclick it, I am able to add content to it. My implimentation was purely just <script type='text

Django-CKEditor won't render images

我与影子孤独终老i 提交于 2019-12-11 03:24:48
问题 I've installed Django-CKEditor and configurated it for development purposes. Now I can edit text and save it to db as text field. But with inserting images I have major problems... I can insert image and it seems to save properly to local host (to correct folder) but when rendering image to preview or text editor I get only broken image picture. Apparently I haven't configured settings.py correctly. Main items from settings.py: MEDIA_ROOT = '' MEDIA_URL = '/media/' STATIC_ROOT = '' STATIC_URL

CKEditor textarea extending out past box in Chrome and Safari

心不动则不痛 提交于 2019-12-11 03:15:38
问题 In FF, Opera, IE the CKEditor is working and looks great. But in Chrome and Safari it is not sizing correctly, and is extending past the container that it is inside. I assume this is because Chrome and Safari are currently the most standards compliant. See the images below. Chrome Opera I tried removing all of my CSS files to see if it was my css causing the issue, but that did not fix it either. Here is my call to CKEditor //Make all textareas use the ckeditor $('textarea.WYSIWYG').ckeditor(

CKEditor and iFrame/YouTube/Other Embed Plugins Show Weird HTML Code

心已入冬 提交于 2019-12-11 03:06:56
问题 I'm struggling with CKEditor 4 and trying to get a YouTube video to show up. I have used the standard iFrame button to add both url and embed code, but when I launch the webpage I just get a blank space where the video should be. This is the actual code that CKEditor iFrame produces: <img class="cke_iframe" data-cke-realelement="%3Ciframe%20src%3D%22http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D0Bmhjf0rKe8%22%20width%3D%22480%22%20height%3D%22360%22%20scrolling%3D%22no%22%20frameborder%3D%220%22

Why is CKEditor removing links and attributes

余生颓废 提交于 2019-12-11 02:44:29
问题 I have a link with an inline attribute of style="color: #FF0000;" . I recently upgraded to latest CKEditor, after years of neglect. Now when I call CKEDITOR.inline , it strips all the links. I found http://docs.ckeditor.com/#!/api/CKEDITOR.dtd-property-S-editable, which doesn't have an a in there. I did CKEDITOR.dtd.$editable.a = 1; and it still strips links. What am I missing here? I literally followed the flow from the API inline call to that, but it seems that I'm doing something wrong.