Skip to content

Instantly share code, notes, and snippets.

@PoslinskiNet
Last active August 31, 2018 19:30
Show Gist options
  • Save PoslinskiNet/03d0e7715565eefb414127bce41768e2 to your computer and use it in GitHub Desktop.
Save PoslinskiNet/03d0e7715565eefb414127bce41768e2 to your computer and use it in GitHub Desktop.
New Twiddle
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
value: `<div>
<p><span style="font-weight: bold;">Type: </span> exploration, adventure</p>
<br>
<p><span style="font-weight: bold;">Audio: </span> English</p>
</div>`,
pellOptions: {
defaultParagraphSeparator: 'p',
styleWithCSS: false,
}
});
<h1>Issue reproduction <a href="https://github.com/PoslinskiNet/ember-pell/issues/51">#51</a></h1>
{{pell-editor value=value onChange=(action (mut value)) pellOptions=pellOptions}}
<h2>Value preview:</h2>
{{value}}
{
"version": "0.15.0",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js",
"ember": "3.2.2",
"ember-template-compiler": "3.2.2",
"ember-testing": "3.2.2"
},
"addons": {
"ember-data": "3.2.0",
"ember-pell": "1.4.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment