View Full Version : HTMLEditor inserting non-editable blocks.
JorisA
07-14-2007, 06:34 PM
Is it possible to add non-editable code blocks to the HTMLEditor?
For example "Insert Topic" would open a prompt for a topic id, and insert a locked div element with a icon and the topic title. Adding the element shouldn't be a problem, but I don't know how to make "the div" readonly.
JorisA
07-25-2007, 12:53 PM
*Bump* :">
Still looking for a solution, another useful application could be inserting blocks in a wysiwyg content management system, like:
- List Sub pages
- Poll
- Insert shop item/link
- Insert currentuser name
I think tinymce had a plugin that support this.
Edit:
Ok it might not be that hard after all. It seems the plugin just disables focusing certain elements (if hasClass(noteditable) > place cursor before/after element) Will have a look into it myself :P
JorisA
07-27-2007, 07:55 PM
*sigh* :P
For the ones interested, first test:
http://ux.designism.nl/ux/noneditable/
Currently only works in gecko, ie support should be really easy, but to tired right now.
Need some tweaking on the selecting when dragging, and using arrow keys.
Feel free to improve. (See tinymce plugin for stuff)
prophet
08-13-2007, 03:29 PM
I would love this functionality, and am trying to get the ux you created to work, but I am getting a couple errors and a lot of console log messages. I'm running Ext 1.1.
Is there a newer version by any chance?
Thanks!
JorisA
08-13-2007, 04:49 PM
Hi, not right now, but I'll continue development soon as I will be needing it for my app.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.