wysiwyg

missing images OpenWYSIWYG editor , Code igniter Structure

不想你离开。 提交于 2019-12-13 00:44:02
问题 This is exactly what is happening to the openWYSIWYG editor with CodeIgniter. The folder structure is like this app_name -application -assets --js ---openwysiwyg ----addons ----docs ----images ----scripts This is my view file: <script src="<?php echo base_url('assets/js/jquery.js');?>"></script> <script type="text/javascript" src="<?php echo base_url('assets/js/openwysiwyg/scripts/wysiwyg.js');?>"></script> <script type="text/javascript" src="<?php echo base_url('assets/js/openwysiwyg/scripts

Image upload from local computer in wysiwyg

心已入冬 提交于 2019-12-12 23:15:38
问题 What´s the best way how can I add image upload from local computer to TinyMCE? I found IMCE but it is just for drupal or not? I need solution which will work with asp.net MVC3. Then I found this TinySLUpload but I want solution without silverlight. What´s my options and which is the best? 回答1: !!!!ENJOY!!! here is the solution to load directly from local computer JSFIDDLE DEMO `tinymce.init({ selector: "textarea", toolbar: "mybutton", height:400, setup: function(editor) { editor.addButton(

Keep selection made on editable DIV when focus is on other element

感情迁移 提交于 2019-12-12 19:20:00
问题 I have had this problem for a long time and I just can't figure out how to fix it. I want to create a simple WYSYWYG editor and I have some problems. Currently I have this: <div id="editor" contenteditable="true"></div> <input type="button" value="B" onmousedown="document.execCommand('bold',false,null); return false;"/> So, if I have some text inside my DIV, select it and click on "B" it is converted to BOLD, and remains selected, but this doesn't work on Opera and IE. I just don't know how

Javascript UndoManager Browser Support

三世轮回 提交于 2019-12-12 15:47:20
问题 The HTML5 spec mentions an UndoManager that can be used to query the previous state of a document that's been edited by a user ( http://www.whatwg.org/specs/web-apps/current-work/#undomanager ). Do any browsers support this? Is there any hope of browsers ever supporting it? 回答1: You can test your own browsers by navigating them to HTML5Test.com. You can also test for it on your page (and then use it if it exists) by doing the following: return typeof UndoManager !== 'undefined'; The browsers

Tinymce: Spellchecker is not working

女生的网名这么多〃 提交于 2019-12-12 14:18:32
问题 I am using spellchecker for tinymce in my application. The spellchecker internally using Moxiecode.TinyMCE.dll . It was working fine before our last live update. Suddenly it's giving error saying You must write ContentLength bytes to the request stream before calling [Begin]GetResponse . Here is the stacktrace which is appearing with the error detail in popup System.Net.HttpWebRequest.GetResponse() +6038604 Moxiecode.TinyMCE.SpellChecker.GoogleSpellChecker.SendRequest(String lang, String data

Editing HTML with a WYSIWYG Editor

回眸只為那壹抹淺笑 提交于 2019-12-12 11:07:29
问题 I have a datagridview with HTML strings. Using a CellDoubleClick event, I am displaying the html string in a WebBrowser control. In Form1 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { if (e.ColumnIndex != 0 && e.RowIndex != -1) { string s = dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString(); this.f2 = new Form2(s); f2.ShowDialog(); } } catch (Exception ex) { MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK,

BBCode for Ruby on Rails

纵饮孤独 提交于 2019-12-12 08:55:18
问题 So I'm putting together a simple forum. I'd like to allow my users limited formatting options and BBCode would be plenty for my users. Knowing that I'm assuredly not the first one to want to use BBCode with RoR I googled but couldn't find a straight forward tutorial on how to create a editor which accepts BBCode nor a way to parse and display BBCode formatted input. Any help or guides would be appreciated! 回答1: You should give bb-ruby a try. Its documentation on the web page seems to be very

Integration of WYSIWYG editor to best-in-place textarea

走远了吗. 提交于 2019-12-12 07:53:51
问题 I'm using best_in_place gem to editing client's info in-place. My question is, how can I integrate a WYSIWYG Editor for editing this content as HTML? I'm currently using this editor: https://github.com/Nerian/bootstrap-wysihtml5-rails/ I'm not good at javascript and cofeescript, so I'm probably doing something wrong. My code in view: <%= best_in_place @client, :info, :type => :textarea, :nil => "Click here to add content!", :html_attrs => { class: "wysihtml5" }, :sanitize => false %> And

How to add a non editable tag to content in Quill editor

偶尔善良 提交于 2019-12-12 07:26:57
问题 I want to add a couple of pre-built labels like <div class="label"> Label Text <span>x</span><div> to the html content in the quill editor. Add such a tag should not be a problem in itself. However I don't want the user to be able to edit the text inside the label. The cursor should not even be allowed to be placed inside the label. On delete the whole div should be deleted. The whole label should act like an image in some sense. Is it possible ? 回答1: You should be able to achieve this by

htmlPurifier not working with Froala editor WYSIWYG

隐身守侯 提交于 2019-12-12 06:37:09
问题 When i Input.: <script>alert("XSS")</script>Cleaning Test My output should be Cleaning Test but i get same as input <script>alert("XSS")</script>Cleaning Test can someone help me to solve this problem and tried a lot but doesn't works i need to check my htmlpurifie is working this is my code <?php require_once 'htmlpurifier/library/HTMLPurifier.auto.php'; ini_set("display_errors", 1); error_reporting(E_ALL); define('DB_SERVER', "localhost"); define('DB_USER', "sanoj"); define('DB_PASSWORD',