ckeditor

show html tags in template - symfony and CKEDITOR. how safety?

﹥>﹥吖頭↗ 提交于 2019-12-12 02:05:43
问题 i use Symfony 1.4 and Doctrine 1.2. I installed plugin http://www.symfony-project.org/plugins/sfCkPlugin if i add net data from form this working ok, but in template this show me for example: <p><b>bold</b> <i>test</i></p> etc instead of bold test I must something add here: getDesc() ?> , but what? In database MySQL i have: <p> <strong>bold</strong> <u>test</u></p> this is safety? 回答1: This is happening because of the output escaper in symfony. You can fix it by calling getRawValue() on the

Multiple CKEditors with different height

梦想的初衷 提交于 2019-12-12 01:49:18
问题 I need to have 10 CKEditors in a page, all with the same customized configurations, but 9 of them with height 100, and one with size 250. This is how I initialize the CKEditors now: for(var i = 1; i < 9; i++) CKEDITOR.replace('editor' + i, { customConfig : 'my_configs/small_box.js' }); CKEDITOR.replace('editor0', { customConfig : 'my_configs/small_box.js' height: 250 }); With this code all I see are text boxes, not the CKEditor instances. 回答1: Solution posted on behalf of the OP: The code was

ckeditor z-index on textarea resize

谁都会走 提交于 2019-12-12 01:45:45
问题 I am using ckeditor in a page with a 2 columns layout. The left column has a form with a ckeditor in it, and the right column has an image and some content. It's possible to resize the ckeditor textarea by dragging the bottom right corner, but the ckeditor window goes "under" the image/content in the right column. It's like the z-index of the ckeditor is inferior to the image/content in the other column, and I would like to change this behavior so the ckeditor goes "above" the image. Is it

How to Validate CKEditor with bootstrapvalidation?

半城伤御伤魂 提交于 2019-12-12 01:37:04
问题 Using CKEditor 4.5.6 with bootstrapvalidator 0.5.2 I followed example from website http://formvalidation.io/examples/ckeditor/ however couldn't make it validate. Also getting JavaScript Console Error in Chrome Browser(Other Browser didn't check) as: Uncaught TypeError: Cannot read property 'getEditor' of undefined Above Error is displayed only on Form Submission. PHP Form loaded using $.load(...) and posted using $.post(...) Note:- I couldn't simulate error in JSFiddle. I want to validate

Prevent CKEditor filtering Radiant Tags (non-valid HTML tags)

流过昼夜 提交于 2019-12-12 01:34:06
问题 I'm using CKEditor with refinerycms (rails CMS) I've also added basic support for radius tags (they are the tags used in Radiant, another rails CMS) so I'm able to list some elements from the model in the page just inserting a code. The problem is that the radius tags mimic html: <r:product_listing category="products" list_as="grid"/> When using CKEditor to modify the page contents it thinks the radius tags are invalid HTML, which is correct and the expected behaviour, but I can't find the

How to remove the “title” attribute that the CKEditor 4 add automatically on inline editing?

时光毁灭记忆、已成空白 提交于 2019-12-12 01:29:15
问题 When using CKEditor 4 Inline Editing on a object the CKEditor add a "Title" attribute that include a text and the object id. e.g. In the CKEditor inline example we can see the next code: <h2 id="inline-sampleTitle" title="Rich Text Editor, inline-sampleTitle"....>CKEditor<br>Goes Inline!</h2> I like to remove the "title" attribute because i do not like the user to see it (my id is more complicated :) ). Note: I was trying to remove it manually after the CKEditor create it using jQuery

Add class to selected image in ckeditor

非 Y 不嫁゛ 提交于 2019-12-12 01:25:29
问题 I'm having trouble adding classes to selected image in ckeditor. What I came up with is this http://pokit.org/get/img/8d89802e1d6f6371f5bc326898d8b414.jpg. I added 2 buttons for selecting whether whether a picture is in portrait or landscape mode. You can select either of them or none, and add costum height/width. Here is my code: CKEDITOR.replace('maindesc', { "extraPlugins": "imgbrowse", "filebrowserImageBrowseUrl": "/ckeditor/plugins/imgbrowse", on: { instanceReady: function() { this

Ckeditor with jQuery form wizard

跟風遠走 提交于 2019-12-12 01:23:09
问题 I am creating a jQuery wizard based form(form is splitted in 5 steps) wizard form, in last two steps I put two ckeditor respectively.My problem is that these two ckeditors are not responding i.e they dont accept any input.I am unable to figure out why this happens.the same ckeditor works fine without form wizard.I think there is conflict between form wizard plugin and ckeditor plugin but dont know what exactly happens there. Sample project on github Link of grails project. Edit1: This is my

Save content rich text editor to blob field in mysql database

依然范特西╮ 提交于 2019-12-12 00:45:08
问题 I'm trying to save the content from a rich text editor (ckeditor in my case) to my a blob field in my database. This is my ViewModel: public class ArticleViewModel { [Required] [Display(Name = "Title")] public string Title { get; set; } [Required] [Display(Name = "Description")] public string Description { get; set; } [Required] [Display(Name = "Article Body")] public string ArticleBody { get; set; } } The Article Body is my rich text field like this in my view: <div class="editor-label">

CKEditor on appended textarea

若如初见. 提交于 2019-12-12 00:25:57
问题 I need to initialize a new textarea with CKEditor, I have read the documentation for the 4 version, but I haven't understood how to do it... var form='<form id="editel_form" method="post" action="function.php" enctype="multipart/form-data" target="hidden_upload" onsubmit="javascript:upload_started()" class="formcor"><ul class="formconte">'; form+="<li class='cont'>Element Category: <br/><select id='de_cat' name='de_cat'></select>"; form+="<li class='cont'>Element New Name:<br/> "+data['id']+"