我需要將Aloha編輯器固定到特定的位置,而不是在整個頁面上跳動。如何將Aloha HTML5編輯器修復到頁面上的特定位置?
是否有配置選項?有一個「附加」選項配置阿羅哈,但我不知道如何申請,或者即使它可以解決我的問題...
也打開hack覆蓋的位置,如果沒有配置選項。
我需要將Aloha編輯器固定到特定的位置,而不是在整個頁面上跳動。如何將Aloha HTML5編輯器修復到頁面上的特定位置?
是否有配置選項?有一個「附加」選項配置阿羅哈,但我不知道如何申請,或者即使它可以解決我的問題...
也打開hack覆蓋的位置,如果沒有配置選項。
迴應我的錯誤報告:
此設置添加到Dev分支(但還沒有找到它的方式 到發佈分支至今),並在導遊 對它的描述已經添加到發佈分支。
https://github.com/alohaeditor/Aloha-Editor/issues/584#issuecomment-6870029
的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。
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%'});
我想這些設置,但不幸的是他們似乎沒有影響到編輯器的顯示。 – jumpfightgo 2012-07-08 03:24:22
事實上,沒有對Aloha.settings.floatingmenu所做的更改得到尊重...例如通過Aloha.settings.sidebar進行的調整已應用,但Aloha.settings.floatingmenu似乎沒有任何操作... – jumpfightgo 2012-07-08 03:46:49
已提交bugreport在這裏,fyi:https://github.com/alohaeditor/Aloha-Editor/issues/584 – jumpfightgo 2012-07-08 04:01:00