wysiwyg

Remove htmlPreview in CKEditor's image plugin

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 05:03:54
问题 I have a problem with hiding preview element in CKEditor's image plugin. I need a very simple image dialog box with only input field for image source and form with button for image uploading. So I removed unnecessary elements using these custom configuration settings: CKEDITOR.on( 'dialogDefinition', function( ev ) { var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; if ( dialogName == 'image' ){ dialogDefinition.removeContents( 'advanced' ); dialogDefinition

Clean up ugly WYSIWYG HTML code? Python or *nix utility

梦想的初衷 提交于 2019-12-09 17:16:09
问题 I'm finally upgrading ( rewriting ;) ) my first Django app, but I am migrating all the content. I foolishly gave users a full WYSIWYG editor for certain tasks, the HTML code produced is of course terribly ugly with more extra tags than content. Does anyone know of a library or external shell app I could use to clean up the code? I use tidy sometimes, but as far as I know that doesn't do what I'm asking. I want to simplify all the extra span and other garbage tags. I cleaned the most offensive

Creating Rich Text editor AngularJS

狂风中的少年 提交于 2019-12-09 16:08:34
问题 I know there are lots of great rich text editors out there that can easily be ported to angular and plenty of discussion on how to do this, but I'd like to create my own. I have the basic idea down: create a text area and watch the input and perform a function as the input changes. I am familiar with the ngBindhtml directive, only to the extent that I can apply it to an element. Any idea how I might be able to create a function that would render plain text into html ? 回答1: I've tried it

Is there a JavaScript WYSIWYG that leverages jQuery?

偶尔善良 提交于 2019-12-09 06:52:38
问题 I have looked at TinyMCE, FCKeditor, YUI Rich Text Editor, NicEdit and some others, but I was wondering if there is one out there that utilises jQuery? I mean, I already use jQuery in all my projects, and it seemed it'd be useful to have a WYSIWYG editor that used it also. This should result in a smaller file size. I understand if one doesn't exist (as they were probably developed before JS frameworks were popular, and changing the codebase now is too much work), or simply for easy deployment

MathML, Latex or similar for web-based WYSIWYG editor [closed]

瘦欲@ 提交于 2019-12-09 06:08:05
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I am looking for a web-based WYSIWYG (or WYSIWYM) editor like TinyMCE or WMD Editor (used to write this question) that supports users to write mathematical formulas. I have looked at LaTeX a little bit but it has a learning curve and I am not sure if support for MathML is extensive. Ideally I would also like to

GUI-based or Web-based JSON editor that works like property explorer [closed]

谁都会走 提交于 2019-12-08 15:38:32
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Background: This is a request for something that may not exist yet, but I've been meaning to build one for a long time. First I will

resize images using NicEdit

丶灬走出姿态 提交于 2019-12-08 10:17:15
问题 I am testing and looking for a wysiwyg editor and I found a pretty functional one called nicEdit. Problem is that using firefox all functions are working properly but using chrome, when image is placed, resize option frame doesn't work! How to solve it? If not, any other similar one? Some functions of Tiny MCE are not working with chrome too. Thank you. 回答1: Use nicEdit and alter code this way in nicEdit.js: var nicImageButton=nicEditorAdvancedButton.extend({addPane:function(){this.im=this.ne

Open source Javascript RTE

六眼飞鱼酱① 提交于 2019-12-08 01:55:13
问题 What open source RTE do you use in your day to day web dev tasks and why? I've been using both TinyMCE and FCK but both seem very clunky and buggy. I've had nightmares with FCK while trying to extend it and it has loads of bugs in IE. Ideally I'd be looking for something that fun to maintain and easy to extend while providing most of the web 2. features that clients demand, i.e.: file uploading, asynchronous saving / updating. 来源: https://stackoverflow.com/questions/700755/open-source

How do I stop visual editor in Wordpress from changing the code?

大兔子大兔子 提交于 2019-12-08 01:20:48
问题 Every time I switch to the visual editor in Wordpress, it changes my code (e.g Removes <br/> ). How do I stop this? 回答1: You can't in the base framework without adding some plugin. However, if you'd like a simple break on the Visual editor side use shift-enter. 来源: https://stackoverflow.com/questions/38777117/how-do-i-stop-visual-editor-in-wordpress-from-changing-the-code

Use of classes for alignment ckeditor

此生再无相见时 提交于 2019-12-08 00:40:57
问题 I am using ckeditor and it is really great. The only one problem I have is that I am trying to use classes instead of style when aligning objects. More specifically, I want to use a class alignleft for align left images instead of using style="float:left" . For this purpose I modified the plugin ckeditor/plugins/image/dialogs/image.js In id:'cmbAlign' I changed the setup and the commid method so that it should add the class "alignleft" or "alignright" depending the situation but strangelly It