ckeditor

Preventing CKEditor from removing classes assigned in source mode?

前提是你 提交于 2019-12-02 11:59:23
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? 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.extraAllowedContent = 'ul(class1,class2,class3)'; (note no space between names). You could also disable ACF (not ideal

CKEditor HTML Autocorrection Issue

 ̄綄美尐妖づ 提交于 2019-12-02 11:36:00
问题 I have few lines of HTML in my database. I want to edit the content in CKEditor. But when I open that in editor the HTML gets break down. The HTML gets rearranged. Below is the HTML which is in database: <span class="sec_title"> <h1><span>Web</span> Engineering</h1> <hr> </span> And when I open it in CKEditor the HTML looks likes below: <h1><span class="sec_title"><span>Web</span> Engineering</span></h1> <hr /> Some one please help me. I tried config.allowedContent = true; but it is also not

Hindi fonts are not working in CKEditor?

…衆ロ難τιáo~ 提交于 2019-12-02 11:20:38
I know this type of question are there. but I have read out all answered question regarding ckeditor hindi fonts. and haven't got solution. I have added following code in contents.css @font-face { font-family: 'kruti_dev_070regular'; src: url('KrutiDev070/kruti_dev_070-webfont.eot'); src: url('KrutiDev070/kruti_dev_070-webfont.eot?#iefix') format('embedded-opentype'), url('KrutiDev070/kruti_dev_070-webfont.woff') format('woff'), url('KrutiDev070/kruti_dev_070-webfont.ttf') format('truetype'), url('KrutiDev070/kruti_dev_070-webfont.svg#kruti_dev_070regular') format('svg'); font-weight: normal;

CKeditor图片上传报错,不正确的服务器响应

夙愿已清 提交于 2019-12-02 11:15:43
CKeditor图片上传报错,不正确的服务器响应 相信走到图片上传这一步的同学,应该是以前用过CKeditor的图片上传,那么为什么上次可以成功上传,这次就不行了呢.其实原因很简单,CKeditor的版本问题,旧版本和新版本的图片返回是不同的动西. 如果时间实在紧急,可以直接把新版本替换为原来的版本,有时间就可以研究下新版本的返回该怎么写. 另外感谢这位版主的提醒,放上链接: https://blog.csdn.net/weixin_38639882/article/details/81329885 来源: https://blog.csdn.net/weixin_42207594/article/details/102754806

CKEditor loading in Colorbox not working [ Google Chrome ]

蓝咒 提交于 2019-12-02 11:09:15
问题 I am using Colorbox in my project. I have integrated CKEditor in colorbox. Its working fine in all browsers, but a small issue in Google Chrome - Editor will open properly on first click, After closing the pop up and try the editor on second time without loading the page , I can't type text in the editor, Editor will enable on clicking on the source. I am not using the source toolbar in basic editor. I spent more than 5 days for for finding a solution for this issue and try help from others -

How to wrap text inside to different paragraphs around image inside the first paragraph (<p> tag). (Content is inputted using CKeditor Plugin)

北城以北 提交于 2019-12-02 11:06:09
I am using CKEDITOR to input content. Whenever user sets image with property right. There is a blank space coming up. I am having an image inside a tag. My structure is like <p> some text <img alt="" src="M.jpg" style="float:right;"> </p> <p> paragraph 2</p> I want to wrap the paragraph 2 to fill up the white space created by image on paragraph 1. Is this possible. My html looks like this I want to make it look like this Here is the actual code snippet <p>Enter each item on a new line, choose the amount of groups unders settings, and click the button to generate your randomized list. Don't

CKEditor Inline selection wrapping

廉价感情. 提交于 2019-12-02 10:56:26
I'm looking for a way to add a inline span element with attributes to a selection. The hard part of this is getting it working with selections that pass over multiple block level elements. I was looking in the sourcecode of the StyleCombobox and found this line. var style = styles[ value ], elementPath = editor.elementPath(); editor[ style.checkActive( elementPath ) ? 'removeStyle' : 'applyStyle' ]( style ); This way it already works on multiple block level elements. The only thing is that i would like to apply attributes to the span that is made around the multiple selections for different

How to change image save location in CKeditor Drupal 7?

醉酒当歌 提交于 2019-12-02 10:38:01
I use ckeditor module for my project. In ckfinder folder > config.php, the default image saved folder is ... 'baseUrl' => '/ckfinder/userfiles/', My project folder path is... MAMP > htdocs > drupal > sites > all > themes > bootstrap > images When I upload the image, ckfinder image folder create the location in ... MAMP > htdocs > ckfinder So, the level of drupal theme folder and ckfinder folder is the same.. I don't want to be like this. I want to create the htdocs folder inside the theme folder. ( drupal > sites > all > themes > bootstrap > images > ckfinder folder ). How can I do this ?

Saving multiple inline edits with CKEditor

▼魔方 西西 提交于 2019-12-02 10:37:29
I'm using asp.net and I would like to edit a newsletter using CKEditor’s inline editing capabilities and then save the newsletter to the database and send via an email. I've seen various posts about getting the data from a single instance of the inline editor on a page. Such as the answer by oleq to Dan Temple question on inline editing. How do I save inline editor contents on the server? However I would like to have a newsletter similar to the inline demo on the ckeditor site with multiple areas in different style that can be edited. http://ckeditor.com/demo#inline Then I guess using ajax to

CKFinder. Rename uploaded files

霸气de小男生 提交于 2019-12-02 10:23:31
I am using ASP.NET version of CKFinder. I need to rename all uploaded files to names like: file1.jpg, file2.jpg, fileN.jpg. It would be great to write my own custom logic on the server to manage uploaded files, but ckfinder is standalone dll library that i include to my project. I cant figure out how to change config settings on client side in proper way. Is it possible? Well, i figured out how to solve my problem. When you download CKFinder zip package from official server there is Visual Studio project with source code. We need to find FileUploadCommandHandler.cs class, located in CKFinder