1

Is it possible to have an editable div element that can only contain text and images. I understand that you can use the rich controls like TinyMCE and jWYSIWYG however I do not require all this functionality and want something lightweight.

Basically all I want is a plain text editable element where I can also add various images such as emoticons that can't be resized when using IE or Firefox. I am using jQuery as the framework so anything using that would be great.

Update: Is it possible to block the click event for images so the resize handler doesn't appear?

Related Question Firefox - designMode: disable image resizing handles

Community
  • 1
  • 1
Luke
  • 6,195
  • 11
  • 57
  • 85

4 Answers4

1

You can't force people not to resize images... I have an extension in Firefox that allows me to resize pictures no matter what.

Tower
  • 98,741
  • 129
  • 357
  • 507
0

I would personally say something like TinyMCE is the best way to go. You can disable a lot of the functionality you don't need, leaving you with just what you want.

Lee Theobald
  • 8,461
  • 12
  • 49
  • 58
  • The images are still resizable even within TinyMCE when using Firefox and IE and this looks plain dodgy. Chrome doesn't let you resize them though. I would have thought you could disable the image resizing. – Luke Jan 14 '09 at 14:11
  • Fix for the image resize in IE: Add this to your css: "img { -ms-interpolation-mode:bicubic; }" (without the quotes). Source: http://www.joelonsoftware.com/items/2008/12/22.html – Aaron Digulla Jan 14 '09 at 14:23
  • Aaron, I don't want the images to be resized at all. – Luke Jan 14 '09 at 14:49
0

This may have a little too much functionality as well, but I know that you can remove most of it. I dont think that images are resizeable once you put them in. It is kind of a web text editor. CuteEditor

Edit: you can remove practically all functionality and can only allow text and images. It will have an html tab and another tab which you can also remove

Josh Mein
  • 28,107
  • 15
  • 76
  • 87
0

I would suggest a simple and small http://nicedit.com/index.php

quark
  • 386
  • 3
  • 9