I'm trying to make a rich text editor with an autocomplete feature. Right now i'm using NicEdit to turn a textarea into a rich text editor, works ok(i'm using it for its simplicity). Also i'm using the autocomplete feature form jQuery successfully on textboxes or textareas, but if i try to use the same textarea that NicEdit uses(that is a text area with "textareaID" id), it doesn't work beacause NicEdit changes the textarea into DIVs with different IDs(in my case the html source ID for that DIV is "nicEdit-main"), and the autocomplete does not work on the DIVs ID.
So, autocomplete does not work on:
$("#nicEdit-main").autocomplete({...
neither does on:
$("#textareaID").autocomplete({...
An idea on how i can accomplish NicEdit and autocomplete to work on the same textarea, will be appreciated.
Related
I am guessing this is really simple but I haven't been able to work out a solution.
I have created a form in Kentico and need to show the caption in the form element itself. I can do this in bootstrap but cannot seem to get this to work in the form editor. I am guessing this is because of the id kentico assigns to each form element.
An example would be the search box used on the stackoverflow site.
Does anyone have an idea how to do this?
Thanks,
When configuring some text field and form control is Text box under Editing control settings click 'Advanced' you will see the Watermark section, where you can put your caption (Text field). This caption will be displayed in form element.
I'm building an extended editor around TinyMCE and I have to implement a Math formula module. I've choosen Mathjax for formula rendering, using plain html/css. So far, I've managed to create a plugin that popup a panel with a textarea, you can enter your latex in, there's a preview in the panel.
Once you validate the formula, it's injected into tinymce content. This new content is A LOT of spans with inlined styles, and OF COURSE, I don't want tinymce to be able to edit that directly. (sidenote: we only store latex, not the rendered html output from mathjax)
Basically, I want that a piece of html inside Tinymce to be ignored totally, but displayed in place. I want my carret to be able to move before that piece of html, and after, but not inside.
The "non editable content" plugin seems to be close of what I'm looking for, but it has some limitation (you can't ADD no editable content on the fly, having nested html content inside an element flagged as "non editable" broke some things, etc.)
Is someone could help with that ? I started to tweak the non editable plugin, but it's really really hard to understand existing code. Has someone already did something like that, or is there another third party plugin ?
thanks
I am trying to build a widget that has an area that will display sample of ~20 line HTML code. This sample code must be selectable so the user will be able to copy + paste it into their own text editor.
Currently I am using an xtype displayfield and using the fieldDescription to put my HTML code inside. I realized though that this fieldDescription does not allow me to format my code. I also tried using an xtype textarea and setting the emptyText as my HTML code, but clicking in the textarea would remove the HTML code.
The user story for this is that I have a textarea where the user will be populating a textarea with HTML code. This HTML code must be structured in a certain way so the CSS will format their code correctly. I want to include an example of how this HTML code should be structured.
EDIT - It will be great if I can apply the font-face Courier to this for ease of readability.
Try using value property of textarea.
Set ignoreData to true to avoid the value being populated from content.
To make sure it doesn't get saved back as a property - leave name empty, or just set a value that doesn't start with ./
To achieve different font face - play with CSS on a page. If you want to add specific CSS class to your widget, use overCls property.
Find more on the documentation
I have an app in GWT that provides lots of little paragraphs and let's the user edit them. Right now I just have a view mode, just an HTML paragraph, and an edit mode, for which I use a standard HTML TextArea.
Is there a fluid GWT paragraph editing widget that does not require using a TextArea or switching between modes? Note that I do not need a rich text widget as I don't want bold, italic, bullet points, etc.
I would be willing to use a jQuery or other JavaScript library solution as long as it was really robust and cleanly separated from everything else I'm doing. I don't want to babysit/hack on JavaScript.
Somehow I think this problem is hard, as Google Docs doesn't do it well and even stackoverflow has me using a very TextArea-like box to edit text that is later displayed as an HTML paragraph.
I would use HTML ContentEditable. http://html5demos.com/contenteditable/
<div contenteditable="true">
</div>
You can use a JS framework to bind to changes. I have noticed issues with the JS 'change' event, but the 'blur' event works well.
I am the tinyMCE beginer...
i display the tinyMCE editot in browser and make able to add the style to the textarea content
How to get the html code from tinyMCE editor using Php,Javascript...
You may use
tinymce.activeEditor.getContent()
or if you know your editor id
tinymce.get('my_editor_id').getContent();