X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsrc%2FRoo_bootstrap_HtmlEditor.js.html;fp=docs%2Fsymbols%2Fsrc%2FRoo_bootstrap_HtmlEditor.js.html;h=736eb1e4a59554368a2b6327034828920f85929e;hb=c1c0168c0e693c4262f3f744a82419f9d9b1807f;hp=4fecb8c43074aabe24de9f8d456e8e3305607030;hpb=b282409b66344f6d0ff1999b55639cfd80097128;p=roojs1 diff --git a/docs/symbols/src/Roo_bootstrap_HtmlEditor.js.html b/docs/src/Roo_bootstrap_HtmlEditor.js.html similarity index 97% rename from docs/symbols/src/Roo_bootstrap_HtmlEditor.js.html rename to docs/src/Roo_bootstrap_HtmlEditor.js.html index 4fecb8c430..736eb1e4a5 100644 --- a/docs/symbols/src/Roo_bootstrap_HtmlEditor.js.html +++ b/docs/src/Roo_bootstrap_HtmlEditor.js.html @@ -1,4 +1,4 @@ -
/*
+/home/alan/gitlive/roojs1/Roo/bootstrap/HtmlEditor.js /*
* - LGPL
*
* HtmlEditor
@@ -20,7 +20,7 @@
if (!this.toolbars) {
this.toolbars = [];
}
-
+
this.editorcore = new Roo.HtmlEditorCore(Roo.apply({ owner : this} , config));
this.addEvents({
/**
@@ -102,18 +102,18 @@
Roo.extend(Roo.bootstrap.HtmlEditor, Roo.bootstrap.TextArea, {
-
-
+
+
/**
* @cfg {Array} toolbars Array of toolbars. - defaults to just the Standard one
*/
toolbars : false,
-
+
/**
* @cfg {Array} buttons Array of toolbar's buttons. - defaults to empty
*/
btns : [],
-
+
/**
* @cfg {String} resizable 's' or 'se' or 'e' - wrapps the element in a
* Roo.resizable.
@@ -121,36 +121,36 @@
resizable : false,
/**
* @cfg {Number} height (in pixels)
- */
+ */
height: 300,
/**
* @cfg {Number} width (in pixels)
- */
+ */
width: false,
-
+
/**
* @cfg {Array} stylesheets url of stylesheets. set to [] to disable stylesheets.
*
*/
stylesheets: false,
-
+
// id of frame..
frameId: false,
-
+
// private properties
validationEvent : false,
deferHeight: true,
initialized : false,
activated : false,
-
+
onFocus : Roo.emptyFn,
iframePad:3,
hideMode:'offsets',
-
+
tbContainer : false,
-
+
bodyCls : '',
-
+
toolbarContainer :function() {
return this.wrap.select('.x-html-editor-tb',true).first();
},
@@ -164,12 +164,12 @@
createToolbar : function(){
Roo.log('renewing');
Roo.log("create toolbars");
-
+
this.toolbars = [ new Roo.bootstrap.htmleditor.ToolbarStandard({editor: this} ) ];
this.toolbars[0].render(this.toolbarContainer());
-
+
return;
-
+
// if (!editor.toolbars || !editor.toolbars.length) {
// editor.toolbars = [ new Roo.bootstrap.HtmlEditor.ToolbarStandard() ]; // can be empty?
// }
@@ -183,20 +183,20 @@
// }
},
-
+
// private
onRender : function(ct, position)
{
// Roo.log("Call onRender: " + this.xtype);
var _t = this;
Roo.bootstrap.HtmlEditor.superclass.onRender.call(this, ct, position);
-
+
this.wrap = this.inputEl().wrap({
cls:'x-html-editor-wrap', cn:{cls:'x-html-editor-tb'}
});
-
+
this.editorcore.onRender(ct, position);
-
+
if (this.resizable) {
this.resizeEl = new Roo.Resizable(this.wrap, {
pinned : true,
@@ -212,11 +212,11 @@
}
}
});
-
+
}
this.createToolbar(this);
-
-
+
+
if(!this.width && this.resizable){
this.setSize(this.wrap.getSize());
}
@@ -224,7 +224,7 @@
this.resizeEl.resizeTo.defer(100, this.resizeEl,[ this.width,this.height ] );
// should trigger onReize..
}
-
+
},
// private
@@ -234,7 +234,7 @@
Roo.bootstrap.HtmlEditor.superclass.onResize.apply(this, arguments);
var ew = false;
var eh = false;
-
+
if(this.inputEl() ){
if(typeof w == 'number'){
var aw = w - this.wrap.getFrameWidth('lr');
@@ -250,11 +250,11 @@
// tbh += this.toolbars[i].footer.el.getHeight();
//}
}
-
-
-
-
-
+
+
+
+
+
var ah = h - this.wrap.getFrameWidth('tb') - tbh;// this.tb.el.getHeight();
ah -= 5; // knock a few pixes off for look..
this.inputEl().setHeight(this.adjustWidth('textarea', ah));
@@ -263,7 +263,7 @@
}
Roo.log('onResize:' + [w,h,ew,eh].join(',') );
this.editorcore.onResize(ew,eh);
-
+
},
/**
@@ -273,10 +273,10 @@
toggleSourceEdit : function(sourceEditMode)
{
this.editorcore.toggleSourceEdit(sourceEditMode);
-
+
if(this.editorcore.sourceEditMode){
Roo.log('editor - showing textarea');
-
+
// Roo.log('in');
// Roo.log(this.syncValue());
this.syncValue();
@@ -288,19 +288,19 @@
// Roo.log('out')
// Roo.log(this.pushValue());
this.pushValue();
-
+
this.inputEl().addClass(['hide', 'x-hidden']);
this.inputEl().dom.setAttribute('tabIndex', -1);
//this.deferFocus();
}
-
+
if(this.resizable){
this.setSize(this.wrap.getSize());
}
-
+
this.fireEvent('editmodechange', this, this.editorcore.sourceEditMode);
},
-
+
// private (for BoxComponent)
adjustSize : Roo.BoxComponent.prototype.adjustSize,
@@ -335,7 +335,7 @@
this.editorcore.pushValue();
},
-
+
// private
deferFocus : function(){
this.focus.defer(10, this);
@@ -344,22 +344,22 @@
// doc'ed in Field
focus : function(){
this.editorcore.focus();
-
+
},
-
+
// private
onDestroy : function(){
-
-
-
+
+
+
if(this.rendered){
-
+
for (var i =0; i < this.toolbars.length;i++) {
// fixme - ask toolbars for heights?
this.toolbars[i].onDestroy();
}
-
+
this.wrap.dom.innerHTML = '';
this.wrap.remove();
}
@@ -372,21 +372,21 @@
for (var i =0; i < this.toolbars.length;i++) {
this.toolbars[i].onFirstFocus();
}
-
+
},
-
+
// private
syncValue : function()
- {
+ {
this.editorcore.syncValue();
},
-
+
pushValue : function()
- {
+ {
this.editorcore.pushValue();
}
-
-
+
+
// hide stuff that is not compatible
/**
* @event blur
@@ -416,9 +416,7 @@
/**
* @cfg {String} inputType @hide
*/
- /**
- * @cfg {String} invalidClass @hide
- */
+
/**
* @cfg {String} invalidText @hide
*/
@@ -429,9 +427,9 @@
* @cfg {String} validateOnBlur @hide
*/
});
-
-
-
-
-
+
+
+
+
+
\ No newline at end of file