ckeditor

Mathjax + CKEditor 4 + CKEditor in ajax based popup

五迷三道 提交于 2019-12-06 06:04:05
I have configured CKEditor 4 and I have following things on my page. I have one CKEditor in page. Two options to set values. These two options themselves options two ajax based popups each. These ajax based popups contains CKEditor. Now I have following issues: I have integrated MathJax . Main page's CKEditor properly shows entered mathematical formulas. CKEditors in ajax based popups first time properly save mathematical formulas but when I reopen those ajax based popups and try to fill saved data (data was save in HTML form) in CKEditor again then no values are shown. I would like to show

CKEditor: Allow video embed code

隐身守侯 提交于 2019-12-06 05:51:07
问题 I am using CKEditor and want to allow the insertion of embed code from YouTube, Vimeo etc. CKEditor turns all tags into HTML Chars equivalent, which is good, but I want it to make exceptions for this kind of content. iFrames seem to be how it's done nowadays, so how can I tell CKEditor to leave iFrame tags alone? Thank you. 回答1: Just found your question while searching for the same solution. Here is what I found. Basically, it adds a button to your toolbar like the Image button, but it pops

How do I use jQuery to directly manipulate CKEditor content?

时间秒杀一切 提交于 2019-12-06 05:24:05
I would like to use jQuery to directly manipulate the content in a CKEditor instance. For example, let's say I want to add a button that will find all h1's in the editor content and prepend the heading text with "Title:". This is easy in normal page content with jQuery: something like $('h1').prepend('Title: ') should do it. However, I cannot find any information in the CKEditor docs about how to perform this kind of manipulation on the content, even from within a plugin. The closest I've found is this answer to a similar question that claims it's possible from within a plugin, but it doesn't

How do I install django-ckeditor?

大城市里の小女人 提交于 2019-12-06 05:23:31
问题 In Stack Overflow there's two questions about this editor, and nobody answers!!! So I'm asking how to install this Django package to my project?? I've followed these steps already, have no errors, nothing, and still the form stays the same. Why?? Edit: heres model from datetime import datetime from django.db import models from django.utils.translation import ugettext_lazy as _, ugettext from ckeditor.fields import RichTextField class Newsletter(models.Model): title = models.CharField( _(u

How to add plugins to ng2-ckeditor using TypeScript and Angular 2 ?

我怕爱的太早我们不能终老 提交于 2019-12-06 05:05:43
问题 I'm trying to add the Justify plugin to my ckeditor, but unfortunately I can't find any information about how I should add plugins to ng2-ckeditor. Also I'm not able to find any directory or config file where I should add plugins. I'm using ng2-ckeditor 1.0.6 with TypeScript. 回答1: ng-ckeditor uses the CKEditor CDN. This page shows you how to add external plugins either from the cdn or downloading the plugin and using a local version. declare var CKEDITOR: any; CKEDITOR.plugins.addExternal(

Django Ckeditor image browser not finding images

我们两清 提交于 2019-12-06 04:25:56
So I'm building a simple blog to keep track of my projects. I decided to use CKeditor as the wysiwyg editor. I was able to get all of it to work except for the image portion of it. I'm not able to view the images in the server when I hit "image browse", and whenever I upload an image, it does upload but I can't view it. It pops up as a red 'X'. Link to screenshots showing what's happening: http://imgur.com/a/ODk8p Below is the code I have where I added CKEditor to my installed apps my project's settings.py INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib

ckeditor font style 13 px

最后都变了- 提交于 2019-12-06 04:24:24
I had earlier asked question about it. But after trying out all the possiblities where the error occurs, I have found that in ckeditor if you copy some text and paste it, it is default pasted as <p style="font-size: 13px;"> example picture HTML CODE <div><p>Original Text</p> <p><strong><u>The quick brown fox jumps over the lazy dog</u></strong></p> <p>The quick brown fox jumps over the lazy dog</p> <p>Copied Text</p> <p style="font-size: 13px;"><strong><u>The quick brown fox jumps over the lazy dog</u></strong></p> <p style="font-size: 13px;">The quick brown fox jumps over the lazy dog</p> <

� in my html after purify

走远了吗. 提交于 2019-12-06 03:57:04
I have a database the I am rebuilding the table structure was crap so I'm porting some of the data from one table to another. This data appears to have been copy-pasted from MSO product so as I'm getting the data I clean it up with htmlpurifier and some str_replace in php. Here is the clean function: function clean_html($html) { $config = HTMLPurifier_Config::createDefault(); $config->set('AutoFormat','RemoveEmpty',true); $config->set('HTML','AllowedAttributes','href,src'); $config->set('HTML','AllowedElements','p,em,strong,a,ul,li,ol,img'); $purifier = new HTMLPurifier($config); $html =

CKeditor adding class to img tag

谁都会走 提交于 2019-12-06 03:56:53
I am trying to add a class to any inserted img tag in CKeditor. I have tried various ways but can't seem to figure out how the setting of this plugin works. Whilst there are tonnes of documents, it only mentions that a code needs to be added, but not where it should be added, there are loads of files. I tried adding it to the bottom on config.js /** * @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. /

Is there anyway to stop CKEditor 4 from filtering my anchor tag attributes?

非 Y 不嫁゛ 提交于 2019-12-06 03:12:52
CKEditor 4 attribute filtering is stripping any occurrence "href" from anchor tags put into the editor. I have a plugin which creates links that contain some "custom" attributes. A link looks something like this: <a href="#" document-href="abc123">Some Link</a> The CKEditor returns the link in this form when I call getData(): <a href="#" document->Some Link</a> Is there a way to instruct CKEditor to stop filtering link attributes? Does anyone happen to know where in the source this regex is so I can fix it? Thanks! I've just checked this link on CKEditor 4.1 - the output is: <p><a href="#"