Define your custom button:
TitleContentCaption

DEFAULT BUTTONS:

Insert/edit image: Inserts image html after getting the src, width, height, alt attributes from the user. If IMCE module is installed, and the user has access to it, a Browse button will appear linking to IMCE image browser. Editing a previously inserted image is possible if the html code of the image is selected with no extra characters.

Insert/edit link: Inserts link html after getting the href, title attributes from the user. If IMCE module is installed, and the user has access to it, a Browse button will appear linking to IMCE file browser. Editing a previously inserted link is possible if the html code of the link is selected with no extra characters.

Bold: Encloses the selected text with the tag <strong>

Italic: Encloses the selected text with the tag <em>

Ordered list: Converts the lines in the selected text to a numbered list. It is also possible to start a new list with no selection. If the selection is a list which was previosly created by this button, the lines in the text are restored.

Unordered list: Converts the lines in the selected text to a bulleted list. It is also possible to start a new list with no selection.

Teaser break: Inserts Drupal teaser break which is <!--break-->

Preview: Previews textarea content. Lines and paragraphs break automatically as in Drupal preview. Set first argument to true to preview pure html. Set second argument to true to preview only the selected text:
eDefPreview(true);//no conversion of new lines. preview is based on pure HTML.
eDefPreview(false, true);//only the selection is previewed.

Help: Displays the title(hint) for each button in the editor.

slick

I like this alot. Drupal needs a dedicated editor, not some overbuilt stock dropin component.

What about putting a menu tree browser in "insert link"?

thanks

i'm planning to open a "button contributions" section in this site to allow users share their custom buttons with others. Would you contribute with a link button having a menu tree browser in it? :)

selam, editorde image

selam, editorde image buttonuna align ozelligi eklemek istedim ama butun button uctu gitti, zahmet olmazsa image buttonuna yapistirilacak kodu (align ozelligi ile olursa harika olur) tumuyle verebilir misiniz?

tesekkurler, kolay gelsin

editorun en son surumundeki

editorun en son surumundeki resim butonu su sekilde:

php:
$imce_url function_exists('imce_menu') && user_access('access imce') ? url('imce/browse') : '';

return 
"js:
var B = eDefBrowseButton('$imce_url', 'attr_src', 'Browse', 'image');
var form = [
 {name: 'src', title: 'Image URL', suffix: B},
 {name: 'width', title: 'Width x Height', suffix: ' x ', getnext: true, attributes: {size: 3}},
 {name: 'height', attributes: {size: 3}},
 {name: 'alt', title: 'Alternative text'},
];
eDefTagDialog('img', form, 'Insert/edit image', 'OK');
"
;

Tips & Tricks bölümünde align in nasil eklenecegi anlatiliyor.

Can this editor handle

Can this editor handle javascripts? I love the idea of being able to add your own custom prefix/suffix but is this editor compatible with CCK fields? This would indeed save a lot of time for repetitive entries like wiki reference links, affiliate codes. embedded videos from sites like youtube..etc... That would be amazing if it was. Not that it's not amazing as it is. lol

Thanks for the demo. Looking forward to answers to my questions.

Jon

you can create js buttons.

you can create js buttons. try inserting js: alert('hi'); into the custom button content above.
you can integrate the editor into any textarea including cck fields.

I'm new to Drupal, trying to

I'm new to Drupal, trying to find my way around, especially interested in Turkish contributions.
Yours is a great work, clean and neat. Admired a lot.
A small wish list:

  • Previex button's caption and title can alternate between Preview/T, depending on the "mode" of the editor.
  • More than one user defined buttons
  • An "Add button" combo to select/unselect the user defined buttons, only the selected/checked buttons shown on the menu.

Best wishes on your projects,
Sahin

Under supervision of Drupal :)