wysiwyg

Adding tables in jHtmlArea

只愿长相守 提交于 2019-12-10 21:59:46
问题 Anyone know of a way of making jHtmlArea support table content, and allow the user to add tables/cells/rows to the editor box? It doesn't appear to be a standard feature for the plugin. I would like for my user to be able to create tables in the WYSIWYG editor. 回答1: Try this code Just change #editor to the "id" you set to the textarea. and insert any styles if u have.Hope this helps. jhtmlarea wysiwyg editor - Adding Table 来源: https://stackoverflow.com/questions/2097559/adding-tables-in

Drupal 6: Implement Wysiwyg on Custom Module Form

折月煮酒 提交于 2019-12-10 20:44:06
问题 I have a custom form that I have written with the Form API. We have the WYSIWYG module and TinyMCE implemented on the site that this module will be used on. How do I implement the WYSIWYG api on my custom form text areas? Thanks! 回答1: This should help integrate WYSIWYG with your custom module forms: http://drupal.org/node/358316 Basically, you need to add the format key to each of your form fields and use filter_form() 回答2: Just in case anybody working with Drupal 7, here's the link to it

Two columns in Winforms RichTextBox

送分小仙女□ 提交于 2019-12-10 20:13:38
问题 In C#, I need to be able to at least give the impression of 2 columns in a single RichTextBox. For my purposes, it could look like this: 1+1 2 70*8+5 565 1000000-300000 700000 76-10 66 For each 'question' in the left column, there will be a corresponding answer. The 'obvious' solution is to use tabs like this: SelectionTabs = new int[] { 0, 500 }; (or simply set \deftab to about 3000 in the raw Rtf). This is all well and good, until the left column input ITSELF contains tabs. When this is the

access the bootstrap-wysihtml5 editor object

て烟熏妆下的殇ゞ 提交于 2019-12-10 17:23:20
问题 I'm trying to acces into an bootstrap-wysihtml5 editor object. I'm doing this by this way: $(document).ready(function () { $('.someLink').live('click', function () { var wysihtml5Editor = $('#textarea').wysihtml5().editor; console.log('wysihtml5Editor: '+wysihtml5Editor); wysihtml5Editor.composer.commands.exec("bold"); }); }); Chrome console returns: > wysihtml5Editor: undefined > Uncaught TypeError: Cannot read property 'composer' of undefined So, the point is. Which is the way to acces into

TinyMCE custom button with popup

旧城冷巷雨未停 提交于 2019-12-10 16:01:54
问题 I'm adding a button to my TinyMCE setup like this: setup : function(ed) { // Add a custom button ed.addButton('mybutton', { title : 'My button', image : 'mybutton.jpg', onclick : function() { // Add you own code to execute something on click ed.focus(); ed.selection.setContent('Hello world!'); } }); }, I wan't to know if it's possible in the onclick event to open a popup and get some input from the popup. Which then can be pasted into the editor. Exactly like if you're doing a plugin i just

Change the anchor tag in CLEditor

时光毁灭记忆、已成空白 提交于 2019-12-10 15:54:53
问题 Im using CLEditor on my website (CLEditor) and it is working well only I want to be able to set the target of links to _blank but I can't figure it out, even when looking into the source. Is there someone who can help me make the links made by the editor have a target of _blank Thanks 回答1: You could add the attribute to each link: $("#cleeditor iframe").contents().find("a[href]").attr("target", "_blank"); 回答2: $('textarea').cleditor({ updateTextArea: function(html) { var e = $('<div>').append

Programmatically retrieve content from WYSIHTML5 editor

拈花ヽ惹草 提交于 2019-12-10 14:59:16
问题 How do I programmatically retrieve content from a WYSIHTML5 editor? Suppose the editor is instantiated as this: var editor = new wysihtml5.Editor ( $(this.el).find('textarea').get(0), { toolbar: "toolbar", parserRules: wysihtml5ParserRules } ); i would like to get the editor's content on blur event editor.on ( "blur", function() { //what here? } ); 回答1: It's much better to use the API editor.getValue() (@dalen mentioned this in the comment above) 回答2: Here is how (using jQuery here): $(

WYSIWYG View Editor in 'Android'?

时光怂恿深爱的人放手 提交于 2019-12-10 14:23:52
问题 Duplicate : Is there any form designer available for Google Android? I would like to move a CheckBox, so it displays in a different location than the top-left corner under Absolute Layout inside main.xml, for 'Android'. I'm using Eclipse to edit my views. How would I do this? On an iPhone they have a tool called Interface builder that allows you to move things in a WYIWYG fashion. Does Eclipse have similar functionality? 回答1: I recommend using a RelativeLayout. You can position your checkbox

WYSIWYG XML Editor (DTD or RelaxNG or XSD based grammars) [closed]

放肆的年华 提交于 2019-12-10 09:45:53
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I'm need to make a WYSIWYG XML editor for a custom XML grammar. I have explored all the OpenSource tools that I could find under this domain. Includes VEX, Oxygen, Bitflux... None of them served my purpose. I'm

Redactor editor change image tag when upload

你说的曾经没有我的故事 提交于 2019-12-10 09:26:08
问题 When Uploading a image through Redactor Redactor will generate <img src="blablabla.png"/> tag What if I want the tag is like: <img class="myClass" src="blablabla.png"/> How to do this? I have viewed all the API and Callback but I didn't find any method to implement this. 回答1: It looks like you can use the imageUploadCallback. This callback is triggered on successful image upload and the image DOM element is there for you to manipulate. $('#redactor').redactor({ imageUploadCallback: function