Finally done with this editor style

This commit is contained in:
Eston Bond
2010-11-04 13:32:22 -07:00
parent b03d361f0e
commit c9870fb6cb
8 changed files with 69 additions and 20 deletions
@@ -561,6 +561,7 @@
if ( !Dialog.markupCreated ) {
debug('Dialog: No markup to show. Please use init first.')
} else {
debug('Showing dialog');
$('#gollum-editor-dialog').animate({ opacity: 0 }, {
duration: 1,
complete: function() {
+1 -1
View File
@@ -41,7 +41,7 @@ var ASCIIDoc = {
'function-link' : {
exec: function( txt, selText, $field ) {
var results = null;
$.GollumEditor.Dialog({
$.GollumEditor.Dialog.init({
title: 'Insert Link',
fields: [
{
+1 -1
View File
@@ -39,7 +39,7 @@ var Creole = {
'function-link' : {
exec: function( txt, selText, $field ) {
var results = null;
$.GollumEditor.Dialog({
$.GollumEditor.Dialog.init({
title: 'Insert Link',
fields: [
{
+3 -5
View File
@@ -74,20 +74,18 @@ var MarkDown = {
'function-link' : {
exec: function( txt, selText, $field ) {
var results = null;
$.GollumEditor.Dialog({
$.GollumEditor.Dialog.init({
title: 'Insert Link',
fields: [
{
id: 'text',
name: 'Link Text',
type: 'text',
help: 'The text to display to the user.'
type: 'text'
},
{
id: 'href',
name: 'URL',
type: 'text',
help: 'The URL to link to.'
type: 'text'
}
],
OK: function( res ) {
+1 -1
View File
@@ -43,7 +43,7 @@ var Textile = {
'function-link' : {
exec: function( txt, selText, $field ) {
var results = null;
$.GollumEditor.Dialog({
$.GollumEditor.Dialog.init({
title: 'Insert Link',
fields: [
{