Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    jakobmillah
    @jakobmillah
    <script src="./Scripts/summernote.js"></script>
    jakobmillah
    @jakobmillah
    I had summernote.min.js included before though. Now when I changed to summernote.js, I get this error at first line inside summernote.js "Uncaught ReferenceError: define is not defined"
    Youngteac Hong
    @hackerwins
    Which version of summernote did you use?
    Outsider
    @outsideris
    electron use commonjs to load libraries.
    did you turn off node-integration?
    jakobmillah
    @jakobmillah
    I got it working! Probably was a mismatch between my older summernote.js file and the one I installed from git
    What I did was to overwrite the one in my script folder with the one I installed from git
    Youngteac Hong
    @hackerwins
    Cheers~
    jakobmillah
    @jakobmillah
    Thanks for helping out :)
    Youngteac Hong
    @hackerwins
    Good luck. If you have any question about summernote later, please let me know.
    jakobmillah
    @jakobmillah
    I get issues with //netdna.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css this though.. :/ Can't run it locally
    Youngteac Hong
    @hackerwins
    You can download css and load it locally.
    jakobmillah
    @jakobmillah
    Ye that worked out! I am kinda lost in the past when it comes to web development... During the days where a css file was a css file and not an entire project ;)
    jakobmillah
    @jakobmillah
    http://imgur.com/UroINfE @hackerwins do you know why this might occur?
    • might*
    its the modal-backdrop class that his above everything
    Youngteac Hong
    @hackerwins
    It's related with z-index.
    jakobmillah
    @jakobmillah
    ohhh, that's the reason then. I put z-index on the window and the buttons on top right
    Thanks
    Alexander Dorozhkin
    @remedge
    Hi, guys! It seems that download url for page http://summernote.org/getting-started/ is broken
    Youngteac Hong
    @hackerwins
    @remedge I can access this page. Could you check again?
    Youngteac Hong
    @hackerwins
    Thanks for reporting.
    Youngteac Hong
    @hackerwins
    @remedge Broken download link is fixed. :+1:
    Ghost
    @ghost~54ce8f4bdb8155e6700f545b
    guys, it seems not possible to unset a color or background-color previously set (except doing the remove all styles). I mean you can always set back the background-color to white, but I'd have preferred something to set it to initial/inherit or whatever it was before, even remove that style property
    Ghost
    @ghost~54ce8f4bdb8155e6700f545b
    @hackerwins ^ I will try to look in a few days, but would be happy to know if it's normal that the "reset to default" or "tranparent" button on the color dropdown don't remove the style
    Ghost
    @ghost~54ce8f4bdb8155e6700f545b
    Also I was trying to merge https://github.com/summernote/summernote/pull/1311/files but I see it was refactored (it's good), so I have found the corresponding files for .2 Table.js and .3 Editor.js. But not .1 Renderer.js and .4 Popover.js. Other popovers are in bs3/module, so Popover.js should TableDialog.js and Renderer.js should be TablePopover.js?
    Ghost
    @ghost~54ce8f4bdb8155e6700f545b
    other problem guys, when pasting some content with position absolute/fixed, it's completely out of the editor of course, any idea for that?
    Ghost
    @ghost~54ce8f4bdb8155e6700f545b
    hmm nvm, but other thing, I think it's possible to format the code in codemirror, it would be great
    Ghost
    @ghost~54ce8f4bdb8155e6700f545b
    will definitely need to use font-family guys
    <font face="Arial"><span style="font-size: 14.6667px; vertical-align: baseline; 
    white-space: pre-wrap; background-color: transparent;">foo bar</span></font>
    you can end up with this after pasting content and putting a font on it after
    Ghost
    @ghost~54ce8f4bdb8155e6700f545b
    @hackerwins eager to see you or the other devs, I'd like to contribute a bit
    Youngteac Hong
    @hackerwins
    @cauburtin Thanks for reporting.

    Confirmed

    guys, it seems not possible to unset a color or background-color previously set (except doing the remove all styles)

    Youngteac Hong
    @hackerwins
    unset color and background-color bug was fixed on develop branch.
    https://github.com/summernote/summernote/pull/1528/files
    Ghost
    @ghost~54ce8f4bdb8155e6700f545b
    good:), maybe 'initial' no?
    Youngteac Hong
    @hackerwins
    yeap.
    Nhat Khanh
    @lednhatkhanh
    @hackerwins Guys, i have an problem here! When i click the link button, the popup to create link appears but when i click anywhere in it, it's just dissappear!
    Here are my files, i use meteor and semantic with summernote:summernote package:
    <template name="postEdit">
        <div class="ui segment">
            <form class="ui form">
                <h1 class="ui dividing header">Edit post</h1>
                <div class="field">
                    <label>Title</label>
                    <input type="text" id="title" name="title" value="{{title}}">
                </div>
                <label>Content</label>
                <div class="field" id="content" name="content">
                    Hello
                </div>
                <button type="submit" class="ui orange button"><i class="edit icon"></i> Edit</button>
                <a class="negative ui button delete"><i class="remove icon"></i> Delete</a>
                <a class="ui button" href="{{pathFor 'postPage'}}"><i class="arrow left icon"></i> Back</a>
            </form>
        </div>
    </template>
    Template.postEdit.onRendered(function(){
        $(document).ready(function() {
            $('#content').summernote({
                height: 400,
                maxHeight:800,
                minHeight:250,
            });
        });
    });
    Ghost
    @ghost~54ce8f4bdb8155e6700f545b
    that's the point of a modal no?
    Youngteac Hong
    @hackerwins
    @lednhatkhanh Thanks for reporting. This is bootstrap modal's default behaviour. http://getbootstrap.com/javascript/#live-demo
    boyhailong
    @boyxiaolong
    hi i found it when i load the summernote js in html, the request becomes very slow
    Tomli
    @lifenglsf
    ``
    I get some error to,used on meteor app
    Template.addArticle.onRendered(function(){ $(document).ready(function(){ $('#content').summernote(); }) }) javascript code
    <Template name="addArticle"> <form name="addArticle" id="addArticle" class="form-horizontal"> <div class="form-group"> <label class="control-label col-sm-2">标题</label> <div class="col-sm-10"> <input type="text" name="title" id="title" maxlength="128" required placeholder="请输入文章标题" class="form-control"> </div> </div> <div class="form-group"> <label class="control-label col-sm-2">文章分类</label> <div class="col-sm-10"> <select name="category" id="category" class="form-control"> {{#each categoryList}} <option value="{{_id}}">{{name}}</option> {{/each}} </select> </div> </div> <div class="form-group"> <label class="control-label col-sm-2">摘要</label> <div class="col-sm-10"> <textarea name="desc" id="desc" class="form-control" manxlength="255" placeholder="请输入内容摘要"></textarea> </div> </div> <div class="form-group"> <label class="control-label col-sm-2">文章内容</label> <div class="col-sm-10"> <div id="content"></div> </div> </div> <div class="form-group"> <div class="col-sm-10 col-sm-offset-2"> <button class="btn btn-primary" id="add-article-btn">提交</button> </div> </div> </form> </Template>
    template code
    Tomli
    @lifenglsf
    but not woking probably,i can not upload file,i click file icon then i got TypeError: module.shouldInitialize is not a function
    Max Xu
    @xumx
    Hi everyone. How do you guys save the content into database?
    The images are converted into inline data blobs. which counts as an extremely long string. I'm using a SQL database, any advice on how I should configure the column to store this rich text??
    Hyunwoo Park
    @lqez
    Hi @xumx
    I do not recommend store images into databases (just in blob/text)