2012-07-07 73 views

回答

3

configuration表明您使用的「元素」設置爲指定元素的ID追加到:

behaviour: 'float', // 'float' (default), 'topalign', 'append' 
element: 'my-html-element-id', // use with 'append' behaviour option: HTML DOM ID of the element the FM should get the position from 

同時,充分利用類似拖動其他選項:虛假和針:假。

如果這不適用於您,請打開bugreport

+0

我想這些設置,但不幸的是他們似乎沒有影響到編輯器的顯示。 – jumpfightgo 2012-07-08 03:24:22

+0

事實上,沒有對Aloha.settings.floatingmenu所做的更改得到尊重...例如通過Aloha.settings.sidebar進行的調整已應用,但Aloha.settings.floatingmenu似乎沒有任何操作... – jumpfightgo 2012-07-08 03:46:49

+0

已提交bugreport在這裏,fyi:https://github.com/alohaeditor/Aloha-Editor/issues/584 – jumpfightgo 2012-07-08 04:01:00

0
var toolbar = $('.aloha-toolbar'); 
// make the toolbar extend to 100% of the div. 
toolbar.css({'width': '100%', 'height': '100%', }); 
// ADDS THE ALOHA EDITOR TO A DIV! 
$('#alohaContainer').append(toolbar); 
// Renders the toolbar to the screen    
UiPlugin.showToolbar(); 
// The child element must also be resized, don't know why 
toolbar.children().css({'width': '100%', 'height': '100%'}); 
相關問題