rich-text-editor

Submitting a form with a Dojo Rich Text Editor

人盡茶涼 提交于 2019-12-10 10:19:07
问题 Does anyone out there know how to submit a form that contains a Dojo Rich Text Editor? I've tried adding the "name" attribute to my element that is decorated with dojoType="dijit.Editor", however, I don't see any of the HTML on my receiving process. I've checked the documentation and I don't see any clear example (other than connecting the on submit event of the form in question with another function that sets the data of a hidden input with the "value" of the Rich Text Editor"). I would

How to customize fonts in CKEditor?

浪子不回头ぞ 提交于 2019-12-08 16:56:57
问题 Does anyone know how to customize (add or remove) fonts in the CKEditor 3.x series? I looked all over and I can't figure out how. Supposedly there is a /plugin/fonts folder but it does not exist in 3.5+ of CKEditor. 回答1: The fonts in the font menu are configured using CKEDITOR.config.font_names: <static> {String} CKEDITOR.config.font_names The list of fonts names to be displayed in the Font combo in the toolbar. [...] So all you need to do is set font_names in your configuration to the font

Tiny editor is not getting post value

别说谁变了你拦得住时间么 提交于 2019-12-07 23:58:04
问题 Here is the code i am using <textarea name="tinyeditor" id="tinyeditor" style="width: 800px; height: 500px"></textarea> <script> var editor = new TINY.editor.edit('editor', { id: 'tinyeditor', width: 750, height: 350, cssclass: 'tinyeditor', controlclass: 'tinyeditor-control', rowclass: 'tinyeditor-header', dividerclass: 'tinyeditor-divider', controls: ['bold', 'italic', 'underline', 'strikethrough', '|', 'subscript', 'superscript', '|', 'orderedlist', 'unorderedlist', '|', 'outdent', 'indent

Using best_in_place with rich-text editor like TinyMCE

前提是你 提交于 2019-12-07 06:53:54
问题 I'm using the best_in_place gem to do in-place editing in a Rails application. However, I need (X)HTML editing on some of the text areas, so I need a rich-text editor. TinyMCE is being used elsewhere on the site. However, it's not trivial to add an editor to best_in_place . To grossly oversimplify, the gem uses jQuery to insert the textarea tag on the fly, and TinyMCE initializes at page load, replacing available textarea s with an editor, so when best_in_place puts in its textarea , TinyMCE

Plain and Rich text editor options in TinyMce editor

匆匆过客 提交于 2019-12-07 04:48:28
I am using the tinymce editor to give a good look of textarea where user write some comments. I want to give him two options: one is plain text and the other is a rich text editor option. When the user clicks on plain text option all rich text option removed and when user click on rich text it will get all options of formatting text. I want to do this in TinyMce Editor. Is there anyone know how to implement it? I am searching from last 6 days how to implement this but i am failed to get any solution. Well, you can take a look here: Toggle editor with JavaScript The code used is: toggleEditor(

What's a good WYSIWYG editor to use with ContentEditable? [closed]

我是研究僧i 提交于 2019-12-07 02:49:12
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm trying to build something similar to Google Docs, where you can edit a page directly and not through a textarea or iframe. This is

How can I configure HTML Purifier to allow data URIs for image src?

回眸只為那壹抹淺笑 提交于 2019-12-06 23:49:45
问题 How can I allow base64 data for the the src attribute of image tags? I see code like this: $config->set('URI.AllowedSchemes', array('http' => true, 'https' => true, 'mailto' => true, 'ftp' => true, 'nntp' => true, 'news' => true, 'data' => true)); In this case, is it data => true which allows the base64? And if so, how can I allow base64 data only for the src attribute of the img tag? (I do not want to allow data URIs in other situations.) I thought of doing something like: $ def->

Temporaily disabling the C# Rich Edit undo buffer while performing syntax highlighting

我与影子孤独终老i 提交于 2019-12-06 09:48:19
问题 I already have a pretty decent syntax highlighter in my Rich Edit control but I have one final problem before it is fully useful: Whenever I run the syntax coloring it records those coloring actions in the undo buffer, which I do not really want. Is there any way to temporarily disable recording undo actions so that after a coloring the user can press undo and it will just undo the user's own actions and not the automated syntax highlighter? I don't think I have the time to implement the

Submitting a form with a Dojo Rich Text Editor

北慕城南 提交于 2019-12-06 05:18:13
Does anyone out there know how to submit a form that contains a Dojo Rich Text Editor? I've tried adding the "name" attribute to my element that is decorated with dojoType="dijit.Editor", however, I don't see any of the HTML on my receiving process. I've checked the documentation and I don't see any clear example (other than connecting the on submit event of the form in question with another function that sets the data of a hidden input with the "value" of the Rich Text Editor"). I would assume there has to be some "easier" way to do this? Here im able to send the value to the server, and able

How to fill a rich text editor field for a Codeception Acceptance test

点点圈 提交于 2019-12-06 02:24:42
问题 I'm trying to fill a rich text editor field (TinyMCE) within my acceptance test in Codeception. Using the fillField() function doesn't work as this 'field' isn't really an input field. It's an iframe , styled to look like a fancy textarea. How can I set some text into the body of the TinyMCE box? I think I'm looking for the addition of a $I->setContent(xpathOrCSS) function. Or does something else already exist to do this? 回答1: It is best to do this by adding re-usable actions to your Actor