rich-text-editor

IFrame in webdriver. Typing in RTE

一曲冷凌霜 提交于 2019-12-11 09:56:44
问题 I have a Rich Text Editor on my page, and some text needed to be typed in there. I wrote a solution but it seems to only work intermittently. Here is what I've already tried: var iframe = _driver.SwitchTo().Frame(Driver.FindElement(By.XPath(xpath))); var editor = iframe.FindElement(By.XPath("//*")); for (var i = 1; _driver.FindElement(By.XPath("//*")).Text == String.Empty; i++) { switch (i) { case 1: editor.SendKeys(text); break; case 2: editor.SendKeys(Keys.Control + "a"); editor.SendKeys

Rich Text Editor and focus by submit button

送分小仙女□ 提交于 2019-12-11 09:14:08
问题 I have a textarea to which I associate a Rich Text Editor . I've followed the steps to install it and everything runs smoothly. The textarea in question is within a form with other textarea and fields to be filled out. Clicking on the classic submit button, I set via js that if the field is empty an alert appears and the system puts the focus on the empty element. This does not work with the textarea combined with the Rich Text Editor, obviously because the latter transforms it into a sort of

how to get caret position for contentEditable div?

孤人 提交于 2019-12-11 08:24:53
问题 I am making a text editor for my blogging website. I want to give users a small tool box where they could edit their blog post by selecting the text and applying some styling, like making the selected text bold or italic or giving the selected text some color. Also options for inserting images, and video links. I searched SO but could not get any satisfactory solution. It would be great if anyone can help me finding the caret position for selection( or without selection). I tried the jQuery

Is possible to capture KeyDown event when current document is in design mode?

元气小坏坏 提交于 2019-12-11 05:51:16
问题 As you know, most of rich text editor use iframe to create WYSIWYG editor. In iframe contain document that is in design mode. I want to capture key down event when user press '@' character in rich text editor for displaying autocomplete for it. By the way, i cannot see any fired event inside design mode. How can I solve this question? 回答1: It's perfectly possible to capture all key events in documents with designMode turned on, though you have to use addEventListener on document in Firefox

How do I get the contents from dijit/Editor?

五迷三道 提交于 2019-12-11 05:43:48
问题 I want to use dijit/Editor to allow users to enter formatted text on a form. The documentation is here. I set up a div on my form and added attributes for the HTML Editor. <label for="eed-event-description" class="required">Event Description</label><br /> <div id="eed-event-description" data-dojo-type="dijit/Editor" height="120px" title="required: brief description of what someone attending can expect at the event" required> <p></p> </div> This results in a lot of new code, including an

RichTextEditor for PHP CMS

痞子三分冷 提交于 2019-12-11 05:37:28
问题 What RTE / WYSIWYG are you using for your CMS please? I am trying to decide on one to use. I am working with PHP and MySQL. 回答1: I'm using: http://ckeditor.com/ From the page What is CKEditor?: CKEditor is a text editor to be used inside web pages. It's a WYSIWYG editor, which means that the text being edited on it looks as similar as possible to the results users have when publishing it. It brings to the web common editing features found on desktop editing applications like Microsoft Word

Sitecore links inserted in Rich Text editor are not resolved to user friendly URLs

北慕城南 提交于 2019-12-11 05:32:47
问题 I saw this post but I'm not sure how to actually apply the answers. I have a basic template that just has one Rich Text field called Body. The layout looks like this: <div style="min-height: 38px"> <asp:Literal runat="server" ID="litBodyContent"/> </div> I place it on the page with the Page Editor and enter some text into it. When I insert a link, it inserts it using the item ID rather than resolving it to a user friendly path: <a href="~/link.aspx?_id=D9D103AD60DA4B318521801ADA863222&_z=z"

get iframe content as string

别说谁变了你拦得住时间么 提交于 2019-12-11 03:39:10
问题 I use a jquery plugin for generating rich text editor. That editor generates an structure like this: <div id="editor" ... > ... <iframe> <!DOCTYPE html> <html> <head>...</head> <body> //some important content here and I need to get them </body> </html> </iframe> </div> Now, I want to get everything inside iframe's body as an String . I tested $("#editor").contents().find("body") , but this return me an object, not string. Also tried $("#editor").contents().find("body").outerHTML , but this

TinyMCE scrubbing HTML in Umbraco

人盡茶涼 提交于 2019-12-11 03:25:20
问题 I'm trying to use Bootstrap's collapse functionality in Umbraco, but when I edit the HTML of a page in the rich text editor (TinyMCE), the data- attributes are scrubbed when I save the page so the plugin doesn't work. I've followed Allow any markup in the tinymce editor with no effect. Can I stop TinyMCE scrubbing my HTML? EDIT: I've reproduced the problem at http://fiddle.tinymce.com/BNcaab Try pasting the code below into the HTML editor, then saving and clickig the HTML editor again. <a

Plain and Rich text editor options in TinyMce editor

旧街凉风 提交于 2019-12-10 11:39:04
问题 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