TinymceBubbleBar
Awesome floating air bubble toolbar plugin for TinyMCE
Install / Use
/learn @donShakespeare/TinymceBubbleBarREADME
tinymceBubbleBar.js
First and only awesome floating air bubble toolbar for TinyMCE (all modes). <br>Inspired by <a href="https://github.com/kenshin54/popline" target="_blank">popline.js</a>, <a href="https://github.com/yabwe/medium-editor" target="_blank">medium-editor clone</a> and <a href="https://medium.com/" target="_blank">medium.com</a>
Float the menubar, float anything thing! Have one/several toolbars show for newLines ...
We are glad to dedicate this to TinyMCE, because TinyMCE is simply the best. <br>Pre-installed(v1) in the <b>most advanced and simple</b> CMS, <b>MODX</b>, by <a href="http://modx.com/extras/package/tinymcewrapper" target="_blank">TinymceWrapper Extra</a>
DEMO
http://www.donshakespeare.com/tinymceBubbleBar.html
#Usage v2
tinymce.init({
selector: "#myEditor",
//inline: true, //or false
//fixed_toolbar_container: "#myOwnBarWrapperDiv", // for inline mode only
external_plugins: {
bubbleBar: "[[++assets_url]]components/tinymcewrapper/tinymceplugins/tinymceBubbleBar.js", // plugin location
},
menubar: true, //or false - menubar and toolbar1 float together with any other unassigned toolbar#. In iframe mode, menubar is fixed.
toolbar1: "bold italic underline bubbleBarOptionsButton", //add optional button for sticky bar and other functionality
toolbar2: "image media codesample bubbleBarOptionsButton",
toolbar3: "code media codesample bubbleBarOptionsButton",
toolbar4: "...",
bubbleBarSettings: {
useCustomCSS: 0, // default 0 - use 1 to use your own stylesheet e.g via content_css
activateMultiBars: 1, //default is 1 (activate magical switching of bars)
barsForNewLine: 'toolbar2,toolbar3', // comma-separated list of toolbars - default is toolbar2 ... toolbar1 is reserved
magicInsert: { //bonus feature (CTRL + CLICK) to insert P tag in difficult/tight areas - after tagTriggers
activate: 1,
tagTriggers: "", // default 'h1, h2, h3, pre, p, p img, ol, ul, table, div, hr'
newLineHTML: "" // default is <p></p>
}
},
});
#Usage v1
tinymce.init({
selector: "#myEditor",
menubar: false, //or true
//inline: true, //or false
//fixed_toolbar_container: "#myOwnBarWrapper", // use with inline mode
toolbar: "bold italic underline bubbleBarOptionsButton",
//bubbleBarCSSstyle: 'background:white;', // any CSS except positions top & left
external_plugins: {
bubbleBar: "[[++assets_url]]components/tinymcewrapper/tinymceplugins/tinymceBubbleBar.js", // file location
}
});
In TinymceWrapper, to affect all editors at once, call external_plugins: {... in your TinymceWrapperCommonCode chunk.<br> Or else, make the call in your individual init chunks.
Related Skills
node-connect
353.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
