ckeditor

Error with DropDownList when CKEditor is also in use on page [duplicate]

怎甘沉沦 提交于 2019-12-25 17:06:35
问题 This question already has answers here : The ViewData item that has the key 'XXX' is of type 'System.Int32' but must be of type 'IEnumerable<SelectListItem>' (6 answers) Closed 3 years ago . I have a dropdownlist that is working just fine, but when I have add a CKEditor (ckeditor-standard 4.5.7) to handel EditorFor helper I'm getting this error: The ViewData item that has the key 'OccupationId' is of type 'System.Int32' but must be of type 'IEnumerable'. Removing the CkEditor solve this error

plugin activation in ckeditor

浪子不回头ぞ 提交于 2019-12-25 12:13:16
问题 i have downloaded the colorbutton plugin. and put the plugin into ckditor plugin folder. in config.js i have activate my plugin . but when i put the activation code in confiq.js file the whole ckeditor is disapper from the page. when i remove this "config.extraPlugins = 'colorbutton';" from the code ckeditor appear when isert it disapper and i need the text coloroption in ckeditor. the follwing is the config.js CKEDITOR.editorConfig = function( config ) { // Define changes to default

Class 'dosamigos\ckeditor\CKEditor' not found

瘦欲@ 提交于 2019-12-25 09:28:33
问题 I am working on a project in Yii2 where I need to integrate CKEditor . I used this to install it: composer require 2amigos/yii2-ckeditor-widget It downloads the library files under /vendor directory. When I copied the files from local to server and used this: use dosamigos\ckeditor\CKEditor; <?= $form->field($userSurveyConfig, 'survey_email_body')->widget(CKEditor::className(), ['options' => ['rows' => 6],'preset' => 'basic']) ?> When I run the page, this error pops up: > Class 'dosamigos

Ckeditor 4.5.7 strips HTML tags despite config.allowedContent = true

风格不统一 提交于 2019-12-25 08:04:09
问题 I am using ckeditor 4.5.7 and I want the user to insert arbitrary HTML code into the page. For now the users cannot even insert tags like <h3>test</h3> - the <h3> tags are automatically converted to <p> after the data is saved (this is occurring in a SharePoint page). As per docs here - http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent - and multiple topics here on StackOverflow, I have set this option in config.js to disable content filtering but it seems it has no effect:

Drupal 8.2.x text editor stripping-removing “div classes”

徘徊边缘 提交于 2019-12-25 08:00:48
问题 I have a problem with Druapl 8.2.1 text editor and CKeditor, system keeps stripping - removing classes from " And example of this: <div class="social clearfix"> </div> System renders: <div> </div> I can't configure the allowed elements, that was only possible in previous versions (config.allowedContent = true;) Any help would be greatly appreciated 回答1: Ok, well after breaking my head thinking and re thinking in all I have already done I just did what it was left to do. Since there is no way

CKEditor images not working

不问归期 提交于 2019-12-25 07:51:59
问题 I'm having some trouble with CKEditor. I have created a blog for my website and a back end section to write new posts and approve comments etc. It's all working fine and I use CKEditor to write and edit posts. When writing a text only post its fine, it gets stored in the database and subsequently appears on the website as it should. But If I write a post with an image in it it doesnt get stored in the database. All text and images disappear. The title of the post goes into the database as

ckeditor wont show up in zurb foundation

不羁岁月 提交于 2019-12-25 07:24:04
问题 i want to replace the textareas in my zurb foundation html page using ckeditor, but it wont show up. when i'm put ckeditor into plain html without the zurb foundation component, it works. is there anyone who knows how to fix this? fyi: i'm using latest version of hosted jquery, and this is the source code http://tny.cz/9030e9f0 thanks. 回答1: Okay, I just found it. The problem comes from empty cols attribute value on textarea. I just change <textarea cols=""> to <textarea cols="50"> , and the

upload and browse server button not visible in ckeditor

让人想犯罪 __ 提交于 2019-12-25 07:06:16
问题 In my Ckeditor I amn't getting Upload and Browse Server button In Image.I am getting error as Error: TypeError: document.getElementById(...) is null Source File: chrome://web-developer/content/overlay/javascript/overlay.js Line: 7333 In line 7333 of the said js is the following code WebDeveloper.Overlay.tabSelect = function() { // If a feature that uses the element information toolbar is active if(WebDeveloper.Dashboard.isOpenInDashboard(WebDeveloper.Locales.getString("elementInformation")) |

jQuery binding to an iFRAME

风流意气都作罢 提交于 2019-12-25 05:34:27
问题 I'm trying to build a "JS Confirm Below leaving the page function" The issue I'm having is that on the page I need this confirmation func I'm using CKEDITOR which creates an iframe for the text editor. // Javascript code that controls the onbeforeunload event function setConfirmUnload(on) { window.onbeforeunload = (on) ? unloadMessage : null; } function unloadMessage() { return 'You have entered new data on this page. If you navigate away from this page without first saving your data, the

jQuery binding to an iFRAME

假装没事ソ 提交于 2019-12-25 05:33:04
问题 I'm trying to build a "JS Confirm Below leaving the page function" The issue I'm having is that on the page I need this confirmation func I'm using CKEDITOR which creates an iframe for the text editor. // Javascript code that controls the onbeforeunload event function setConfirmUnload(on) { window.onbeforeunload = (on) ? unloadMessage : null; } function unloadMessage() { return 'You have entered new data on this page. If you navigate away from this page without first saving your data, the