ckeditor

how to use Zend_Auth to authenticate user when uploading using ckeditor plugin pgrfilemanager

坚强是说给别人听的谎言 提交于 2019-12-11 09:36:23
问题 Hello Good People !! I have a web application (my first of this type) based on Zend Framework 1.11.12 ( upgraded from 1.10.8) using "modular approach" folder structure i mean by that all the modules are under application/modules . i used Doctrine 1.2.4 i also use library folder for all the third party libraries including ZF except 2: CKEditor and PGRFilemanager. pgrfile manager for uploading files to images folder from an admin panel. here is globally my file structure. /application /configs

PHP preg_replace BESbswy ckeditor

我的梦境 提交于 2019-12-11 09:19:25
问题 is it possible to match this string with using regex? The whole string is wrapped with p tags and last 2 with strong tags. BESbswyBESbswyBESbswyBESbswy BESbswy BESbswy Thanks! 回答1: yes, it is, something like this <?php $string = '<p>BESbswyBESbswyBESbswyBESbswy<strong>BESbswy</strong><strong>BESbswy</strong></p>' ?> <?= preg_replace('|<p>BESbswyBESbswyBESbswyBESbswy<strong>BESbswy</strong><strong>BESbswy</strong></p>|','aa',$string) ?> 来源: https://stackoverflow.com/questions/26118999/php-preg

ckeditor blur and dialog

≡放荡痞女 提交于 2019-12-11 08:35:06
问题 I have a blur function attached to my ckeditor like so editor = CKEDITOR.instances.fck; editor.on("blur",function(e){ alert("hello"); }); you with me ? now when I click on the flash button the editor blurs and causes the alert to show. how to I stop that from happening and still get the alert to appear other times like when the user leave the editor area thanks again 回答1: As long as we're working on hacks, here's what I like to use to solve this problem. The key is that CKE uses iFrames for

CKBuilder gives me too many plugins

谁说我不能喝 提交于 2019-12-11 08:16:21
问题 In anticipation of making some modifications to ckeditor, I'm trying to build it from source, as described in the documentation here. I want to build a version that is, as nearly as possible, identical to the version I already have installed on my production web server, so there won't be any surprises when I deploy my modified version later. Here are the steps I've followed: Clone the git repository git checkout 4.3.3 (this is the version on the production server) copy the build-config.js

May posting of images through a rich text editor be vulnerable to XSS attacks?

情到浓时终转凉″ 提交于 2019-12-11 07:59:43
问题 I'm using a rich text editor - CKEditor to allow users to input formatted text that renders HTML/CSS. To prevent XSS attacks by untrusted users, I'm using the Jsoup Java library which filters/whiltelists necessary tags and/or attributes of the user input something like, for example, an anchor tag like, <a href='http://example.com/' onclick='executeMaliciousTask();'>Click Here</a> is turned into <a href="http://example.com/" rel="nofollow">Click Here</a> The link generated by Jsoup seems to be

CKEditor - Using ImageBrowse plugin not working

瘦欲@ 提交于 2019-12-11 07:52:50
问题 I am trying to use ImageBrowser plugin (http://devture.com/projects/ckeditor-imagebrowser) with CK Editor. As required i have configured: CKEDITOR.replace( 'editor', { "extraPlugins" : 'imagebrowser', "imageBrowser_listUrl" : "/getimagelist/images_list.js" } ); The Image Browse window shows up correctly with images, but when i select an image i get this error: Uncaught TypeError: Cannot read property 'setCustomData' of undefined. If it matters my CKEditor is in AngularJS application.

Keep cursor position in CKEditor when focus changes

≯℡__Kan透↙ 提交于 2019-12-11 07:50:17
问题 I have already read these three questions: Refocus CKEditor at correct cursor position Set cursor to specific position in CKEditor How to set cursor position to end of text in CKEditor? But none of them could help me. For some reason editor.getSelection() nor editor.createRange() work for me. Let me explain you guys what I need. I have this: The dropdownlist in front of "Tipo de Texto" loads 4 static values. Depending on the value that is selected, N values are dinamycally loaded into the

Liferay: customize CKEditor

假装没事ソ 提交于 2019-12-11 07:34:39
问题 I try to customize shortcuts keys in Liferay 6, in the CKEditor. I made a hook, and added this to the file html/js/editor/ckeditor/ckconfig.jsp: CKEDITOR.config.keystrokes = [ [ CKEDITOR.ALT + 121 /*F10*/, 'toolbarFocus' ], [ CKEDITOR.ALT + 122 /*F11*/, 'elementsPathFocus' ], [ CKEDITOR.SHIFT + 121 /*F10*/, 'contextMenu' ], [ CKEDITOR.CTRL + 90 /*Z*/, 'undo' ], [ CKEDITOR.CTRL + 89 /*Y*/, 'redo' ], [ CKEDITOR.CTRL + CKEDITOR.SHIFT + 90 /*Z*/, 'redo' ], [ CKEDITOR.CTRL + 76 /*L*/, 'link' ], [

Does CKEditor provide a property for when the 'change' event was triggered by mouse vs keyboard?

对着背影说爱祢 提交于 2019-12-11 07:16:29
问题 Does CKEditor provide a property for when the 'change' event was triggered by mouse vs keyboard? While inside of a 'change' event invocation, I need to see how the event was triggered. In my case I have a script that changes the content area and need to take action on that but not when the keyboard causes the change. 回答1: No, there's no such information. The editor#change event is only a side effect of CKEditor's undo manager and in some cases it may even be fired when nothing has changed

CKEDITOR: Multiple skins on a single page

旧时模样 提交于 2019-12-11 06:58:20
问题 I am doing so: CKEDITOR.replace('entry-short_text',{ skin: 'Moono_blue,/ckeditor/Moono_blue/', }); CKEDITOR.replace('entry-full_text',{ skin: 'office2013,/ckeditor/office2013/', }); All elements of the set only one skin, which is listed last (ie office2013). Why is that? 回答1: CKEditor 4 only allows one skin per page. The ability to load multiple skins on the same page was removed when they redesigned for v. 4. 来源: https://stackoverflow.com/questions/30481246/ckeditor-multiple-skins-on-a