ckeditor

Update the Label of a RichCombo according to Selection - CKEditor

我怕爱的太早我们不能终老 提交于 2019-12-24 12:35:00
问题 I have a custom RichCombo to allow Font selection. It goes through some data and creates its options, while the "special feature" consists of spans with the corresponding font-family set, instead of just plain text. Now i want to change / update the value or label of this RichCombo box, on every change and from the outside as well. Basically, it should act exactly like the default Font selection box. editor.ui.addRichCombo( 'FontFamily', { multiSelect : false, label: 'Schriftart', title:

Ckeditor plugin configuration not working

。_饼干妹妹 提交于 2019-12-24 12:29:18
问题 I have tried to add justify plugin to be able to align text right, left or centre. But after following the instructions in the documentation (http://apostrophecms.org/docs/tutorials/howtos/ckeditor.html), I wonder if the plugin should be located in a specific folder (mine is at public/modules/apostrophe-areas/js/ckeditorPlugins/justify/), as it disappears when the site is loaded, but if I include it in some other folder such as public/plugins/justify still doesn't work. This is my code just

Use jquery inside CKEditor plugin

谁说胖子不能爱 提交于 2019-12-24 11:49:12
问题 I'm trying to create a few ckeditor plugins that manipulate the a full html document's formatting (e.g. you push one of the editor's buttons and the selection becomes a callout, or moves to a new column). The CKEditor API isn't cutting it for me, so I'd like to use jquery on the editor's contents within the plugins. Any suggestions? This is within Drupal using the wysiwyg plugin. 回答1: I use JQuery in my plugins all the time and it works just like within a normal javascript file. I suggest

How to load CKEditor only on the page that needs it?

时间秒杀一切 提交于 2019-12-24 11:24:17
问题 I'm using CKEditor gem. It is only used on admin pages. I want to only use it on the pages that require it. I commented out the Sprocket directive in application.js // only load on required pages // require ckeditor/init And I add it to the form page at the top <%= javascript_include_tag 'ckeditor/init' %> However it only works sometimes. If I reload a page without it, and navigate to a page with it, then it loads the script, but fails to decorate the text box. There are no console errors. If

changing ckeditor dimension for different instances (not all instances)

泄露秘密 提交于 2019-12-24 10:53:01
问题 i'm trying to change dimensions for multiple ckeditor in the same page using this code just after the textarea <script type="text/javascript"> CKEDITOR.config.width ='250px'; CKEDITOR.config.height='600px'; </script> it changes all instances in the page and i know how to adjust default values in the config.js but i'm trying to change dimensions for some instances not all of them 回答1: If you ever need to change the height of specific instance of CKEditor and all you can change is config.js ,

Changing the height of ckeditor from a zend form

旧巷老猫 提交于 2019-12-24 10:37:47
问题 I am trying to set the height of a ckeditor I am using. Here is what I currently have: $this->addElement('textarea', 'text_field', array( 'filters' => array('StringTrim'), 'validators' => array( array('StringLength', true, array(0, 3000)), ), 'decorators' => array('ViewHelper'), 'required' => false, 'attribs' => array('class' => 'ckeditor'), 'label' => 'Please enter text below', 'value' => isset($this->_text_data[0]['text']) ? $this->_text_data[0]['text'] : '' )); This comes from my form,

Getting wiki output from TinyMCE/CKEditor (for Trac plugin)

二次信任 提交于 2019-12-24 10:35:46
问题 I'm working for a company that uses Trac. Problem is, no one likes Trac's wiki-editor, and the wysiwyg plugin isn't as good as we'd like. To solve this, we've decided to create our own Trac wysiwyg plugin (hopefully, I'll be allowed to Opensource it.) The plan right now is to use either TinyMCE or CKEditor as they wysiwyg editor. Problem is, their output is html. Ideally, we'd like their output to be native trac-wiki code. My question: Is there any way of getting TinyMCE or CKEditor to output

change ckeditor iframe dialog url

喜欢而已 提交于 2019-12-24 10:28:02
问题 I'm developing a ckeditor plugin. I have a iframe dialog like this: CKEDITOR.dialog.add( 'imageDialog', function () { return { title : 'add image', minWidth : 700, minHeight : 360, contents : [ { id : 'iframe', label : 'Lien', expand : true, elements : [ { type : 'iframe', src : 'index.php', width : '100%', height : '100%', onContentLoad : function() { } } ] } ], buttons: {disabled:true} }; } ); and I want to change the src url each time the dialog opens. How can I do this? 回答1: I succeeded

Style not loaded in CKEditor plugin

假如想象 提交于 2019-12-24 10:24:43
问题 I am developing a CKEditor widget. I followed and adapted the widget tutorial, then tried to add a style using addContentsCss , as specified in the plugin sdk styles, but the styles are not loaded. I used the browser console to analyze the situation, and I found out that my style, odtbox.css , is present in CKEDITOR.instances.editor.config.contentsCss : but it is not loaded by the page: I can click on the path shown in the console for my css and it is correctly shown. Permissions for the file

ckeditor in asp.net

岁酱吖の 提交于 2019-12-24 09:52:13
问题 I have to use a ckeditor in my application but I dont know how to write the @ Register Assembly="" Namespace="" TagPrefix="" %> From where I could get the assembly? 回答1: In web.config section you can write: <add tagPrefix="FredCK" namespace="FredCK.CKEditor" assembly="FredCK.CKEditor, Culture=neutral, PublicKeyToken=9ef91de3e191403a" /> 回答2: Actually, best is not to use the ASP.NET CKEditor control but use CKEditor directly. The control is outdated (version 3.6 instead of 4.1) and not