wysiwyg

First dynamically-added TinyMCE editor displays, others do not

风流意气都作罢 提交于 2019-12-23 01:44:53
问题 I'm building a javascript app that will be displaying a live-updated discussion thread. It will regularly poll the server for new data, and write it to the page. For posting comments and replies, we are trying to use the TinyMCE WYSIWYG editor, which converts a textarea into a nice HTML editor. This is my first experience with this editor. The app relies heavily on jQuery, so we are using TinyMCE's jQuery plugin to make it easier to work with. Here's the issue... Every time our code generates

Wordpress WYSIWYG editor automatically adding span classes with style

久未见 提交于 2019-12-22 11:35:18
问题 For some reason my WYSIWYG editor in Wordpress automatically adds span classes with style when I create a bullet list with the button. It's very annoying because I want my text to be a certain size, but the span class hardcodes the style and it messes the size up. Does anyone know how to remove this automatic adding of the span class? This site is for a customer and he/she doesn't know how to use HTML, that is why this has to work with the WYSIWYG editor. Help much appreciated. Thanks. 回答1: I

contenteditable .execCommand() not firing?

╄→гoц情女王★ 提交于 2019-12-22 11:08:42
问题 Im experimenting on a custom WYSIWYG editor using contenteditable. I'm using the following code to make the selected text bold: $('.wysiwyg-b').click(function() { document.execCommand('bold',false,true); alert('hi'); }); <li class="wysiwyg-b" title="Bold"><img src="images/icons/black/png/font_bold_icon&16.png"> </li> And it looks like this: My problem is, the text is only made bold when I click on the image(B), not when I click on the blue surrounding area....but the alert does. What could be

Is there anyway to stop CKEditor 4 from filtering my anchor tag attributes?

╄→尐↘猪︶ㄣ 提交于 2019-12-22 10:27:11
问题 CKEditor 4 attribute filtering is stripping any occurrence "href" from anchor tags put into the editor. I have a plugin which creates links that contain some "custom" attributes. A link looks something like this: <a href="#" document-href="abc123">Some Link</a> The CKEditor returns the link in this form when I call getData(): <a href="#" document->Some Link</a> Is there a way to instruct CKEditor to stop filtering link attributes? Does anyone happen to know where in the source this regex is

Delphi - How do I make a WYSIWYG HTML editor using Delphi? [closed]

落花浮王杯 提交于 2019-12-22 07:21:43
问题 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 7 years ago . HOW do I make an 'easy' to use WYSIWYG interface to make HTML files? I.E. A HTML Editor. Specifically to create formatted email messages, with images, hyperlinks, Font formatting, bullets, indenting, etc... Note

Delphi - How do I make a WYSIWYG HTML editor using Delphi? [closed]

杀马特。学长 韩版系。学妹 提交于 2019-12-22 07:21:26
问题 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 7 years ago . HOW do I make an 'easy' to use WYSIWYG interface to make HTML files? I.E. A HTML Editor. Specifically to create formatted email messages, with images, hyperlinks, Font formatting, bullets, indenting, etc... Note

Can't sendKeys() to TinyMCE with Selenium WebDriver

99封情书 提交于 2019-12-22 05:23:31
问题 I am using Selenium WebDriver in Eclipse and I am trying to insert text into a tinymce box on a web page. This is the code I am using. //find tinymce iframe editorFrame = driver.findElement(By.cssSelector(".col_right iframe")); //switch to iframe driver.switchTo().frame(editorFrame); driver.findElement(By.className("mceContentBody")).sendKeys("YOOOO"); driver.switchTo().defaultContent(); The cursor is blinking inside of the editor, however no text is sent. I have also tried this slight

jQuery Trigger keyCode Ctrl+Shift+z & Ctrl+z in wysiwyg textarea

被刻印的时光 ゝ 提交于 2019-12-22 04:57:10
问题 i was wondering how do i trigger the event keyCode composed by Ctrl+z and the event keycode composed by Ctrl+Shift+z ? 回答1: If you want to trigger the event then it should be something like this: HTML <!DOCTYPE html> <html> <head> </head> <body> <input type=button value=CTRL+SHIFT+Z id=bcsz /> <input type=button value=CTRL+Z id=bcz /> <textarea id=t ></textarea> </body> </html> JavaScript var t = document.getElementById('t'), //textarea bcsz = document.getElementById('bcsz'), //button ctrl

How reliable is using contenteditable on a div for a WYSIWYG editor?

有些话、适合烂在心里 提交于 2019-12-21 16:24:43
问题 I believe the title is pretty self-explanatory but still, maybe, I should ask in detail. I'm building a WYSIWYG editor and I'm really at the beginning of it. So, I realized that maybe knowing the pros and cons would enlighten me. Basically, my question is, since I want an editor that would work at least with 90% in all major browsers, how further I can go using contenteditable within a div and what are the cons and pros of using contenteditable when compared with designMode and iframe? Also,

Insert HTML programmatically in wysiHTML5 editor

瘦欲@ 提交于 2019-12-21 04:04:29
问题 I found javascript wysiwyg editor wysiHTML5. I'm trying to add element <a href=...> to the editor or just turn on bold programmatically. My code is: var editor = new wysihtml5.Editor("textarea", { toolbar: "toolbar", stylesheets: "css/wysihtml5.css", parserRules: wysihtml5ParserRules }); editor.observe("load", function() { editor.composer.commands.exec("bold"); }); Am I doing something wrong? 回答1: Actually no, but you have to be sure that your textarea (iframe) is focused. Try to use on