-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<style> | ||
html, | ||
body { | ||
height: 100%; | ||
} | ||
|
||
.wrapper { | ||
position: absolute; | ||
bottom: 0; | ||
display: inline-flex; | ||
} | ||
|
||
.wrapper > div:not(:last-of-type) { | ||
margin-right: 15px; | ||
} | ||
</style> | ||
|
||
<div class="wrapper"> | ||
<div id="classic"> | ||
<p>1 </p> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Expedita, veritatis.</p> | ||
<p>2 </p> | ||
</div> | ||
|
||
<div id="divarea"> | ||
<p>1 </p> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Expedita, veritatis.</p> | ||
<p>2 </p> | ||
</div> | ||
|
||
<div id="inline" contenteditable="true"> | ||
<p>1 </p> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Expedita, veritatis.</p> | ||
<p>2 </p> | ||
</div> | ||
</div> | ||
|
||
<script> | ||
bender.tools.ignoreUnsupportedEnvironment( 'autocomplete' ); | ||
|
||
var config = { | ||
width: 300, | ||
height: 150, | ||
on: { | ||
instanceReady: function( evt ) { | ||
new CKEDITOR.plugins.autocomplete( evt.editor, { | ||
textTestCallback: autocompleteUtils.getTextTestCallback(), | ||
dataCallback: autocompleteUtils.getDataCallback() | ||
} ); | ||
} | ||
} | ||
}; | ||
|
||
CKEDITOR.replace( 'classic', config ); | ||
CKEDITOR.replace( 'divarea', CKEDITOR.tools.extend( { extraPlugins: 'divarea' }, config ) ); | ||
CKEDITOR.inline( 'inline', config ); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@bender-tags: 4.16.0, feature, 3582 | ||
@bender-ui: collapsed | ||
@bender-ckeditor-plugins: sourcearea, wysiwygarea, floatingspace, toolbar, autocomplete, textmatch | ||
@bender-include: _helpers/utils.js | ||
|
||
1. Place cursor after `2 `. | ||
1. Type `@`. | ||
|
||
*Repeat steps above for all 3 editors.* | ||
|
||
## Expected | ||
|
||
Mention panel should be appeared above cursor. | ||
|
||
## Unexpected | ||
|
||
Mention panel is not appearing above cursor. |